Opened 11 years ago

Closed 11 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:
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 11 years ago.
Crashing test

Download all attachments as: .zip

Change History (6)

by bonefish, 11 years ago

Attachment: conftest.c added

Crashing test

comment:1 by anevilyak, 11 years ago

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

comment:2 by starsseed, 11 years ago

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

in reply to:  2 comment:3 by bonefish, 11 years ago

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 by zooey, 11 years ago

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

comment:5 by zooey, 11 years ago

Resolution: fixed
Status: in-progressclosed

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

Note: See TracTickets for help on using tickets.