• antirez's avatar
    Security: fix Lua struct package offset handling. · e89086e0
    antirez authored
    After the first fix to the struct package I found another similar
    problem, which is fixed by this patch. It could be reproduced easily by
    running the following script:
    
        return struct.unpack('f', "xxxxxxxxxxxxx",-3)
    
    The above will access bytes before the 'data' pointer.
    e89086e0
lua_struct.c 11.1 KB