[patch] fix heap-buffer-overflow in custom_canonicalize_pathname() #3437
Labels
area: core
Issues not related to a specific subsystem
prio: medium
Has the potential to affect progress
Milestone
Important
This issue was migrated from Trac:
and
fix heap-buffer-overflow in lib/utilunix.c:custom_canonicalize_pathname()
only use strncmp when path has enough room (greater then url_delim_len size)
overflow happen when path = './'
(found by AddressSanitizer)
==7448==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000079d6f at pc 0x000000458ebe bp 0x7fffc02b6580 sp 0x7fffc02b5d38
READ of size 1 at 0x602000079d6f thread T0
Signed-off-by: Andreas Mohr <and@gmx.li>
Note
Original attachments:
and
onApr 6, 2015 at 13:49 UTC
The text was updated successfully, but these errors were encountered: