|
From: | Laszlo Ersek |
Subject: | Re: [Qemu-devel] [PATCH RFC] main loop: fix some accesses made in sighandler context |
Date: | Fri, 16 Sep 2011 10:08:12 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110817 Fedora/3.1.12-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.12 |
On 09/15/11 21:16, Anthony Liguori wrote:
On 09/15/2011 12:22 PM, Laszlo Ersek wrote:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04_03_03I don't think you can rely on snprintf being signal safe. I think you should just exit on failure. OpenBSD lists snprintf as signal safe, but "probably not on other systems."
I wasn't diligent enough to look up snprintf() in the table I linked myself. In other news, I hold a Programmers' Darwin Award. Will send v2.
Thanks, lacos
[Prev in Thread] | Current Thread | [Next in Thread] |