aboutsummaryrefslogtreecommitdiff
path: root/libweb.pc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-12 17:01:01 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-12 17:01:01 +0100
commitf6f7d6b05b66307aef549086f8dea24f530f49e8 (patch)
treecb173ddd58aae3fcf3d4e4cd81344fea2d6e67e7 /libweb.pc
parent87807c690947f4636dc4dd7fddca15f944719f0c (diff)
downloadlibweb-f6f7d6b05b66307aef549086f8dea24f530f49e8.tar.gz
handler.c: Fix dangling pointer on failed strdup(3)
When the call to realloc(3) returns successfully, h->elem must be updated immediately. Otherwise, a failed call to strdup(3) would cause the caller to free h->elem at shutdown, but h->elem would still contain a dangling pointer, and therefore cause undefined behaviour.
Diffstat (limited to 'libweb.pc')
0 files changed, 0 insertions, 0 deletions