Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is similar to 15655: Lua TvbRanges do not support truncated captures where tvb_captured_length < tvb_reported_length.

The getString function is failing here (epan/wslua/wslua_tvb.c):

    if (offset >= tvbr->len || (len + offset) > tvbr->len) {
        luaL_error(L,"Range is out of bounds");
        return 0;
    }

offset = 4 and tvbr->len = 4 so fails on offset >= tvbr->len.
A zero (0) length tvb (len = 0) is ok but the code does not allow asking for those 0 octets outside the source tvb.