summaryrefslogtreecommitdiff
path: root/wiretap/mime_file.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-10-21 11:57:11 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-04-18 15:11:02 +0000
commit39968ac43253d1542121ec045607d110b83c7efd (patch)
tree7ec304d66320751ff1d0c071ca73dde74177b8fc /wiretap/mime_file.c
parente9926ff3aff2c0e04849bb49aadc37c357e50891 (diff)
downloadwireshark-39968ac43253d1542121ec045607d110b83c7efd.tar.gz
MIME: Allow to dissect big files
Increase file size limit for mime files that can be loaded by Wireshark to AddressSpace/2. On 32bit machines the limit can be 2 GiB. Change-Id: I5b38b3ebe401077f4e1e873cff4b37da560d592f Reviewed-on: https://code.wireshark.org/review/4907 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'wiretap/mime_file.c')
-rw-r--r--wiretap/mime_file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wiretap/mime_file.c b/wiretap/mime_file.c
index a22c8b7120..b4a28d6a8c 100644
--- a/wiretap/mime_file.c
+++ b/wiretap/mime_file.c
@@ -89,10 +89,8 @@ static const mime_files_t magic_files[] = {
* reassembly, it would *still* have to allocate a buffer the size of
* the file, so it's not as if we'd neve try to allocate a buffer the
* size of the file.
- *
- * For now, go for 16MB.
*/
-#define MAX_FILE_SIZE (16*1024*1024)
+#define MAX_FILE_SIZE G_MAXINT
static gboolean
mime_read_file(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,