aboutsummaryrefslogtreecommitdiff
path: root/elf/order2mod4.c
diff options
context:
space:
mode:
authorRoy Eldar <royeldar0@gmail.com>2023-05-25 17:41:58 +0300
committerFlorian Weimer <fweimer@redhat.com>2023-05-25 18:50:59 +0200
commitdae801527386f94e9d2fabf23c37863d1b599153 (patch)
tree297cda761c1f88e3f15502d2ae651b82175be984 /elf/order2mod4.c
parent44d4d3bdcff67c7fa0b0c046fef9919e9c66c1b2 (diff)
downloadglibc-dae801527386f94e9d2fabf23c37863d1b599153.tar
glibc-dae801527386f94e9d2fabf23c37863d1b599153.tar.gz
glibc-dae801527386f94e9d2fabf23c37863d1b599153.tar.bz2
glibc-dae801527386f94e9d2fabf23c37863d1b599153.zip
elf: fix handling of negative numbers in dl-printf
_dl_debug_vdprintf is a bare-bones printf implementation; currently printing a signed integer (using "%d" format specifier) behaves incorrectly when the number is negative, as it just prints the corresponding unsigned integer, preceeded by a minus sign. For example, _dl_printf("%d", -1) would print '-4294967295'. Signed-off-by: Roy Eldar <royeldar0@gmail.com> Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'elf/order2mod4.c')
0 files changed, 0 insertions, 0 deletions