snprintf() doesn't use format size specifiers

Norman Feske norman.feske at ...1...
Tue Apr 21 14:42:04 CEST 2015


Hello Pirmin,

>> If I do want to right align the numbers (%-5d) the function crashes my  
>> program.
> 
> This should not happen. Thank you for reporting. I just opened an issue
> about it:
> 
>   https://github.com/genodelabs/genode/issues/1485

unfortunately, I am not able to reproduce the problem. When modifying
the printf test using the attached patch, the program runs just fine.

Could you share a small test program that triggers the problem? That
would be greatly appreciated.

Best regards
Norman

-- 
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snprintf_test.patch
Type: text/x-diff
Size: 442 bytes
Desc: not available
URL: <http://lists.genode.org/pipermail/users/attachments/20150421/aa573217/attachment.patch>


More information about the users mailing list