[Bug 23282] vsnprintf(3) example promotes code which ignores error return code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=23282





--- Comment #2 from Graham Gower <graham.gower@xxxxxxxxx>  2013-02-09 00:16:38 ---
Marshel, that patch does not address the ambiguity created by backwards
compatibility with glibc 2.0.6, it merely removes the backwards compatilibility
(while retaining notes that it is compatible). You also omit the return value
in your return statement.

I'd be happy with the backwards compatibility removed (and a note to that
effect), given glibc 2.0 is now 15 years old. The code could then be
simplified. At the time I encountered this issue, I wrote the following code,
which would just error out in the case of truncation with old glibc.
http://code.google.com/p/opkg/source/browse/trunk/libopkg/sprintf_alloc.c

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux