Opened 11 years ago

Last modified 11 years ago

#9928 closed bug

sprintf() crash with 'a'/'A' format specifier — at Version 3

Reported by: bonefish Owned by: axeld
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().

Change History (4)

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.

Note: See TracTickets for help on using tickets.