[tor-commits] [stegotorus/master] minor fix to pdfSteg.c
zwol at torproject.org
zwol at torproject.org
Fri Jul 20 23:17:06 UTC 2012
commit 0c81b4df3854f45d0426db6754b1a49e14d7d82b
Author: Vinod Yegneswaran <vinod at csl.sri.com>
Date: Tue Nov 1 06:11:32 2011 +0000
minor fix to pdfSteg.c
git-svn-id: svn+ssh://spartan.csl.sri.com/svn/private/DEFIANCE@111 a58ff0ac-194c-e011-a152-003048836090
---
src/steg/pdfSteg.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/steg/pdfSteg.c b/src/steg/pdfSteg.c
index 58147fa..05216f9 100644
--- a/src/steg/pdfSteg.c
+++ b/src/steg/pdfSteg.c
@@ -460,6 +460,13 @@ x_http2_handle_client_PDF_receive(steg_t *s, conn_t *conn, struct evbuffer *dest
return RECV_INCOMPLETE;
httpHdr = (char *) evbuffer_pullup(source, response_len);
+
+ if (httpHdr == NULL) {
+ log_warn("CLIENT unable to pullup the complete HTTP body");
+ return RECV_BAD;
+ }
+
+
httpBody = httpHdr + hdrLen;
More information about the tor-commits
mailing list