diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-06-16 18:28:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-06-16 18:28:28 +0000 |
commit | c81cbe1842246645664f8093f207df962e09c562 (patch) | |
tree | 13687c9ae57352649aa6e5eeb90e28272c16b9f3 /epan | |
parent | eec58bc3e93a01a1d2cb889e5b88dca142d66a35 (diff) |
Go back to 64-bit sizes, but, before passing those sizes to
g_try_malloc() or g_try_realloc(), check whether they fit in a gsize
and:
if not, just pretend the allocation failed;
if so, cast them to gsize to squelch compiler warnings.
svn path=/trunk/; revision=33239
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-smb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb.h b/epan/dissectors/packet-smb.h index a8976777bd..dea3c0cb67 100644 --- a/epan/dissectors/packet-smb.h +++ b/epan/dissectors/packet-smb.h @@ -189,7 +189,7 @@ typedef struct _smb_eo_t { gchar *content_type; guint32 payload_len; const guint8 *payload_data; - gsize smb_file_offset; + guint64 smb_file_offset; guint32 smb_chunk_len; } smb_eo_t; |