Wireshark mailing list archives

emem.c:732: failed assertion


From: varname <varname () gmail com>
Date: Thu, 25 Feb 2010 18:24:42 +0100

Hi,

The following code:

____________________________________________________________

http_media_f = Field.new("media")
tap = Listener.new(nil, "http && (http.response.code == 200)")
function tap.packet(pinfo, tvb, userdata)
   local http_media = http_media_f()
   local media_val = http_media.value     -- <-- assertion
end
____________________________________________________________


results in a failed assertion whenever http_media.len is rather large 
(I'm guessing larger than 5MB from the text of the assertion). The 
assertion itself:

____________________________________________________________

Unhandled exception ("emem.c:732: failed assertion "size<((10 * 1024 * 
1024)>>2)"", group=1, code=4)
____________________________________________________________


The source (emem.c:731) states that the limit set is 'arbitrary'; 
anything that can be done other than changing the limit in the source 
and recompiling it?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: