[Bug libc/6530] New: *printf() and incomplete multibyte sequences may cause infinite loops
With the following testcase, it happens while it shouldn't, according to the manual: -8--- #include stdio.h #include locale.h #define STR ²éľÂíɱ²¡¶¾£¬ÖܺèµtÄúµÄ360²»×¨Òµ£¡ int main(void) { char buf[200]; setlocale(LC_ALL, ); printf(%d\n, snprintf(buf, 150, %.50s, STR)); return 0; } -8--- The manual page has this to say: About precision: An optional precision, in the form of a period (#8216;.#8217;) followed by an optional decimal digit string.(...) This gives (...) the maximum number of characters to be printed from a string for s and S conversions. About s: If no l modifier is present: The const char * argument is expected to be a pointer to an array of character type(...) If an l modifier is present: The const wchar_t * argument is expected to be a pointer to an array of wide characters. Wide characters from the array are converted to multibyte characters (...) There is no l modifier, but still, the string goes through the multibyte conversion code, and fails because the string is invalid multibyte. Note, it only works with non UTF-8 locale set in LC_CTYPE or LC_ALL. This is debian bug http://bugs.debian.org/208308 -- Summary: *printf() and incomplete multibyte sequences may cause infinite loops Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: madcoder at debian dot org CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=6530 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug libc/6530] *printf() and incomplete multibyte sequences may cause infinite loops
-- What|Removed |Added CC||debian-glibc at lists dot ||debian dot org http://sourceware.org/bugzilla/show_bug.cgi?id=6530 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter. You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: bug 208308 is forwarded to http://sourceware.org/bugzilla/show_bug.cgi?id=6530
Processing commands for [EMAIL PROTECTED]: # Automatically generated email from bts, devscripts version 2.10.27 forwarded 208308 http://sourceware.org/bugzilla/show_bug.cgi?id=6530 Bug#208308: *printf() and incomplete multibyte sequences may cause infinite loops in applications Noted your statement that Bug has been forwarded to http://sourceware.org/bugzilla/show_bug.cgi?id=6530. End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug libc/6530] *printf() and incomplete multibyte sequences may cause infinite loops
--- Additional Comments From madcoder at debian dot org 2008-05-18 10:38 --- Err the title is bogus, the thing is that sprintf returns -1 bogusly, if you run the previous testcase using LC_ALL=ja_JP.EUC-JP e.g. %s should not care about multibyte at all -- http://sourceware.org/bugzilla/show_bug.cgi?id=6530 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter. You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
[Bug libc/6530] *printf() and incomplete multibyte sequences returns -1 bogusly
-- What|Removed |Added Summary|*printf() and incomplete|*printf() and incomplete |multibyte sequences may |multibyte sequences returns |cause infinite loops|-1 bogusly http://sourceware.org/bugzilla/show_bug.cgi?id=6530 --- You are receiving this mail because: --- You reported the bug, or are watching the reporter. You are on the CC list for the bug, or are watching someone who is. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#481741: [INTL:nl] Updated Dutch po-debconf translation
Package: tzdata Severity: wishlist Tags: patch l10n Please find attached the updated dutch po-debconf translation. Please add it to your next package revision, it should replace the current debian/po/nl.po in your package tree, TIA. Feel free to mail me if this file needs updating at some future date. -- cobaco (aka Bart Cornelis) nl.po Description: application/gettext signature.asc Description: This is a digitally signed message part.
Processed: [bts-link] source package glibc
Processing commands for [EMAIL PROTECTED]: # # bts-link upstream status pull for source package glibc # see http://lists.debian.org/debian-devel-announce/2006/05/msg1.html # user [EMAIL PROTECTED] Setting user to [EMAIL PROTECTED] (was [EMAIL PROTECTED]). # remote status report for #475474 # * http://sourceware.org/bugzilla/show_bug.cgi?id=6395 # * remote status changed: NEW - RESOLVED # * closed upstream tags 475474 + fixed-upstream Bug#475474: sed: performance anomaly of /^$/ Tags were: fixed-upstream Tags added: fixed-upstream usertags 475474 - status-NEW Bug#475474: sed: performance anomaly of /^$/ Usertags were: status-RESOLVED resolution-FIXED status-NEW. Usertags are now: status-RESOLVED resolution-FIXED. usertags 475474 + status-RESOLVED Bug#475474: sed: performance anomaly of /^$/ Usertags were: status-RESOLVED resolution-FIXED. Usertags are now: status-RESOLVED resolution-FIXED. thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: tagging 481216
Processing commands for [EMAIL PROTECTED]: # Automatically generated email from bts, devscripts version 2.9.26 tags 481216 + pending Bug#481216: tzdata: [INTL:ru] Russian debconf templates translation update Tags were: l10n patch Tags added: pending End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: tagging 481741
Processing commands for [EMAIL PROTECTED]: # Automatically generated email from bts, devscripts version 2.9.26 tags 481741 + pending Bug#481741: [INTL:nl] Updated Dutch po-debconf translation Tags were: l10n patch Tags added: pending End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
r2948 - in tzdata/trunk/debian: . po
Author: schizo Date: 2008-05-18 11:53:55 + (Sun, 18 May 2008) New Revision: 2948 Modified: tzdata/trunk/debian/changelog tzdata/trunk/debian/po/nl.po Log: * debian/po/nl.po: update from Bart Cornelis. closes: #481741. Modified: tzdata/trunk/debian/changelog === --- tzdata/trunk/debian/changelog 2008-05-18 11:49:13 UTC (rev 2947) +++ tzdata/trunk/debian/changelog 2008-05-18 11:53:55 UTC (rev 2948) @@ -23,8 +23,11 @@ * debian/po/cs.po: update from Miroslav Kure. Czech. closes: #480929 * Russian. Closes: #481216 - -- Clint Adams [EMAIL PROTECTED] Sat, 10 May 2008 13:12:35 -0400 + [ Clint Adams ] + * debian/po/nl.po: update from Bart Cornelis. closes: #481741. + -- Clint Adams [EMAIL PROTECTED] Sun, 18 May 2008 07:52:23 -0400 + tzdata (2008b-1) unstable; urgency=low * New upstream release. Modified: tzdata/trunk/debian/po/nl.po === --- tzdata/trunk/debian/po/nl.po2008-05-18 11:49:13 UTC (rev 2947) +++ tzdata/trunk/debian/po/nl.po2008-05-18 11:53:55 UTC (rev 2948) @@ -8,7 +8,7 @@ Project-Id-Version: tzdata\n Report-Msgid-Bugs-To: [EMAIL PROTECTED] POT-Creation-Date: 2008-03-24 09:56-0400\n -PO-Revision-Date: 2008-01-31 18:01+0100\n +PO-Revision-Date: 2008-05-18 13:02+0200\n Last-Translator: Bart Cornelis [EMAIL PROTECTED]\n Language-Team: debian-l10n-dutch [EMAIL PROTECTED]\n MIME-Version: 1.0\n @@ -157,14 +157,8 @@ #. Type: select #. Description #: ../templates:1002 -msgid -Please select the geographic area you live in. Subsequent configuration -questions will narrow this down by presenting a list of cities, representing -the time zones in which they are located. -msgstr -Wat is het geografisch gebied waarin u leeft? In verder vragen krijgt u een -lijst van steden te zien die de verschillende tijdzones in dit gebied -representeren. +msgid Please select the geographic area you live in. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. +msgstr Wat is het geografisch gebied waarin u leeft? In verder vragen krijgt u een lijst van steden te zien die de verschillende tijdzones in dit gebied representeren. #. Type: select #. Choices @@ -502,9 +496,18 @@ #. Description #. Type: select #. Description -#: ../templates:2002 ../templates:3002 ../templates:4002 ../templates:5002 -#: ../templates:6002 ../templates:7002 ../templates:8002 ../templates:9002 -#: ../templates:10002 ../templates:11002 ../templates:12001 ../templates:13001 +#: ../templates:2002 +#: ../templates:3002 +#: ../templates:4002 +#: ../templates:5002 +#: ../templates:6002 +#: ../templates:7002 +#: ../templates:8002 +#: ../templates:9002 +#: ../templates:10002 +#: ../templates:11002 +#: ../templates:12001 +#: ../templates:13001 msgid Time zone: msgstr Tijdzone: @@ -532,9 +535,18 @@ #. Description #. Type: select #. Description -#: ../templates:2002 ../templates:3002 ../templates:4002 ../templates:5002 -#: ../templates:6002 ../templates:7002 ../templates:8002 ../templates:9002 -#: ../templates:10002 ../templates:11002 ../templates:12001 ../templates:13001 +#: ../templates:2002 +#: ../templates:3002 +#: ../templates:4002 +#: ../templates:5002 +#: ../templates:6002 +#: ../templates:7002 +#: ../templates:8002 +#: ../templates:9002 +#: ../templates:10002 +#: ../templates:11002 +#: ../templates:12001 +#: ../templates:13001 msgid Please select the time zone corresponding to your location. msgstr Wat is de tijdzone die met uw lokatie overeenkomt? @@ -619,10 +631,9 @@ #. Type: select #. Choices #: ../templates:3001 -#, fuzzy #| msgid Argentina/San_Juan msgid Argentina/San_Luis -msgstr Argentinië/San_Juan +msgstr Argentinië/San_Luis #. Type: select #. Choices @@ -1678,7 +1689,7 @@ #. Choices #: ../templates:7001 msgid Ho_Chi_Minh -msgstr +msgstr Ho_Chi_Minh #. Type: select #. Choices @@ -1702,7 +1713,8 @@ #. Choices #. Type: select #. Choices -#: ../templates:7001 ../templates:9001 +#: ../templates:7001 +#: ../templates:9001 msgid Istanbul msgstr Istanbul @@ -1758,7 +1770,7 @@ #. Choices #: ../templates:7001 msgid Kolkata -msgstr +msgstr Kolkata #. Type: select #. Choices @@ -1818,7 +1830,8 @@ #. Choices #. Type: select #. Choices -#: ../templates:7001 ../templates:9001 +#: ../templates:7001 +#: ../templates:9001 msgid Nicosia msgstr Nicosia @@ -2730,30 +2743,22 @@ #~ msgid Calcutta #~ msgstr Calcutta - #~ msgid Saigon #~ msgstr Saigon - #~ msgid Canada #~ msgstr Canada - #~ msgid Central #~ msgstr Centrum - #~ msgid East-Saskatchewan #~ msgstr Oost-Saskatchewan - #~ msgid Eastern #~ msgstr Oosters - #~ msgid Mountain #~ msgstr Bergen - #~ msgid Newfoundland #~ msgstr Newfoundland - #~ msgid Saskatchewan #~ msgstr Saskatchewan - #~ msgid Yukon #~ msgstr Yukon + -- To UNSUBSCRIBE,
r2949 - in tzdata/trunk/debian: . po
Author: schizo Date: 2008-05-18 11:55:43 + (Sun, 18 May 2008) New Revision: 2949 Modified: tzdata/trunk/debian/changelog tzdata/trunk/debian/po/ru.po Log: * debian/po/ru.po: update from Yuri Kozlov. closes: #481216. Modified: tzdata/trunk/debian/changelog === --- tzdata/trunk/debian/changelog 2008-05-18 11:53:55 UTC (rev 2948) +++ tzdata/trunk/debian/changelog 2008-05-18 11:55:43 UTC (rev 2949) @@ -25,6 +25,7 @@ [ Clint Adams ] * debian/po/nl.po: update from Bart Cornelis. closes: #481741. + * debian/po/ru.po: update from Yuri Kozlov. closes: #481216. -- Clint Adams [EMAIL PROTECTED] Sun, 18 May 2008 07:52:23 -0400 Modified: tzdata/trunk/debian/po/ru.po === --- tzdata/trunk/debian/po/ru.po2008-05-18 11:53:55 UTC (rev 2948) +++ tzdata/trunk/debian/po/ru.po2008-05-18 11:55:43 UTC (rev 2949) @@ -17,8 +17,7 @@ MIME-Version: 1.0\n Content-Type: text/plain; charset=UTF-8\n Content-Transfer-Encoding: 8bit\n -Plural-Forms: nplurals=3; plural=(n%10==1 n%100!=11 ? 0 : n%10=2 n% -10=4 (n%10010 || n%100=20) ? 1 : 2);\n +Plural-Forms: nplurals=3; plural=(n%10==1 n%100!=11 ? 0 : n%10=2 n%10=4 (n%10010 || n%100=20) ? 1 : 2);\n X-Generator: KBabel 1.11.4\n #. Type: select @@ -623,6 +622,7 @@ #. Type: select #. Choices #: ../templates:3001 +#| msgid Argentina/San_Juan msgid Argentina/San_Luis msgstr Аргентина/Сан-Луис @@ -2729,3 +2729,4 @@ #: ../templates:11001 msgid Yap msgstr Яп + -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
r2950 - in tzdata/trunk/debian: . po
Author: schizo Date: 2008-05-18 12:05:17 + (Sun, 18 May 2008) New Revision: 2950 Modified: tzdata/trunk/debian/changelog tzdata/trunk/debian/po/en.po Log: * debian/po/en.po: fix fuzzy mistranslation of San Luis to San Juan. Modified: tzdata/trunk/debian/changelog === --- tzdata/trunk/debian/changelog 2008-05-18 11:55:43 UTC (rev 2949) +++ tzdata/trunk/debian/changelog 2008-05-18 12:05:17 UTC (rev 2950) @@ -26,6 +26,7 @@ [ Clint Adams ] * debian/po/nl.po: update from Bart Cornelis. closes: #481741. * debian/po/ru.po: update from Yuri Kozlov. closes: #481216. + * debian/po/en.po: fix fuzzy mistranslation of San Luis to San Juan. -- Clint Adams [EMAIL PROTECTED] Sun, 18 May 2008 07:52:23 -0400 Modified: tzdata/trunk/debian/po/en.po === --- tzdata/trunk/debian/po/en.po2008-05-18 11:55:43 UTC (rev 2949) +++ tzdata/trunk/debian/po/en.po2008-05-18 12:05:17 UTC (rev 2950) @@ -619,10 +619,8 @@ #. Type: select #. Choices #: ../templates:3001 -#, fuzzy -#| msgid Argentina/San_Juan msgid Argentina/San_Luis -msgstr San Juan (Argentina) +msgstr San Luis (Argentina) #. Type: select #. Choices -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#481862: libc6: glob(3) broken again
Package: libc6 Version: 2.7-11 Severity: normal #include glob.h #include stdio.h int main() { glob_t pglob; printf(%d\n, glob(/de*, 0, 0, pglob)); printf(%d\n, pglob.gl_flags GLOB_MAGCHAR); printf(%d\n, glob(/*/null, 0, 0, pglob)); printf(%d\n, pglob.gl_flags GLOB_MAGCHAR); return 0; } This program prints: $ ./a 0 256 0 0 $ The last 0 should be 256 since /dev/null exists. Please refer to bug 67921 for the full history of this bug. -- System Information Debian Release: 4.0 Kernel Version: Linux gondolin 2.6.17-rc4 #1 SMP PREEMPT Wed May 17 17:28:00 EST 2006 i686 GNU/Linux -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]