[sr-dev] git:master:15de1f06: app_lua: safer alloc size for hdr operations