Opened 6 years ago

Closed 6 years ago

#9928 closed bug (fixed)

sprintf() crash with 'a'/'A' format specifier

Reported by: bonefish Owned by: zooey
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description (last modified by bonefish)

Encountered when configuring the m4 build on Haiku PM f73d05a79b96bf945010ef04a0813ac67c4ab386 x86 gcc4: The call

sprintf(buf, "%.1La", 1.999L);

crashes in __printf_fphex().

Attachments (1)

conftest.c (5.5 KB) - added by bonefish 6 years ago.
Crashing test

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by bonefish

Attachment: conftest.c added

Crashing test

comment:1 Changed 6 years ago by anevilyak

Component: - GeneralSystem/libroot.so
Owner: changed from nobody to axeld

comment:2 Changed 6 years ago by starsseed

format '%s' expects argument of type 'char*', but argument 3 has type 'long double' ...

comment:3 in reply to:  2 Changed 6 years ago by bonefish

Description: modified (diff)

Replying to starsseed:

format '%s' expects argument of type 'char*', but argument 3 has type 'long double' ...

Just a typo in the description.

comment:4 Changed 6 years ago by zooey

Owner: changed from axeld to zooey
Status: newin-progress

comment:5 Changed 6 years ago by zooey

Resolution: fixed
Status: in-progressclosed

Should be fixed in hrev45984 (and in HaikuPM, too).

Note: See TracTickets for help on using tickets.