• A
    Security: fix Lua struct package offset handling. · cf760071
    antirez 提交于
    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.
    cf760071
lua_struct.c 11.1 KB