]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod-client: Fix out-of-bounds write
authorAaron Merey <amerey@redhat.com>
Tue, 1 Nov 2022 21:51:00 +0000 (17:51 -0400)
committerAaron Merey <amerey@redhat.com>
Tue, 1 Nov 2022 21:51:00 +0000 (17:51 -0400)
commit04b1a3aae24b21c3f02b915b2416eba886992bed
tree60a4d5232d577150333136bbd447bce831efa00c
parentfb833750c395ce268d16fd44e4decafbb41208a8
debuginfod-client: Fix out-of-bounds write

Return early from path_escape when '\0' is seen in order to prevent
an out-of-bounds write to the dest buffer.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/debuginfod-client.c