Opened 7 years ago
Closed 7 years ago
#13925 closed bug (fixed)
libroot: Fix possible typo in printf_size.c
Reported by: | ohnx56 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/libroot.so | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
It appears as if there is a typo in printf_size.c; it makes
no sense to compare an unitialized variable in such a way.
Since info->width
is referenced later on in the variable
assignment, it seems possible that the intended statement
was to place the larger of the values between info->width
and info->prec
into width
.
Fixes CID 609431.
Attachments (1)
Change History (6)
by , 7 years ago
Attachment: | 0001-libroot-Fix-possible-typo-in-printf_size.c.patch added |
---|
comment:1 by , 7 years ago
patch: | 0 → 1 |
---|
comment:2 by , 7 years ago
comment:4 by , 7 years ago
Actually, it seems the Haiku version is different from the glibc patch's version; someone must have already fixed the second width.
Not sure if that affects the patch though.
Note:
See TracTickets
for help on using tickets.
Indeed the original patch is here: https://github.com/bminor/glibc/commit/fa5753eede3e97e94f50928989b313fb1fbdae6f.patch
Is it OK if I apply this instead of your patch?