]> sourceware.org Git - glibc.git/commitdiff
Fix error_tail overflow in allocation calculation.
authorOndřej Bílka <neleai@seznam.cz>
Mon, 14 Oct 2013 15:15:08 +0000 (17:15 +0200)
committerOndřej Bílka <neleai@seznam.cz>
Mon, 14 Oct 2013 15:15:48 +0000 (17:15 +0200)
ChangeLog
NEWS
misc/error.c

index 3905a29b1f05184c0fd3b50069c4e8c9e1f02e31..6a9568330c1f55745073644c5c4903a02efbc145 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
+
+       [BZ #15672]
+       * misc/error.c (error_tail): Fix possible buffer overflow.
+
 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
 
        [BZ #13028]
diff --git a/NEWS b/NEWS
index 156e98891f8f1f94b02432d9d03b5e113cd200ee..48bbb02285e698259e578a91ad4650a1876aaa6c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,11 +11,11 @@ Version 2.19
 
   156, 431, 832, 13028, 13982, 13985, 14155, 14547, 14699, 14910, 15048,
   15362, 15400, 15427, 15522, 15531, 15532, 15608, 15609, 15610, 15632,
-  15640, 15680, 15681, 15723, 15734, 15735, 15736, 15748, 15749, 15754,
-  15760, 15764, 15797, 15844, 15847, 15849, 15855, 15856, 15857, 15859,
-  15867, 15886, 15887, 15890, 15892, 15893, 15895, 15897, 15905, 15909,
-  15867, 15886, 15887, 15890, 15892, 15893, 15895, 15897, 15905, 15909,
-  15919, 15921, 15923, 15939, 15963, 15966, 15988, 16032, 16034, 16036.
+  15640, 15672, 15680, 15681, 15723, 15734, 15735, 15736, 15748, 15749,
+  15754, 15760, 15764, 15797, 15844, 15847, 15849, 15855, 15856, 15857,
+  15859, 15867, 15886, 15887, 15890, 15892, 15893, 15895, 15897, 15905,
+  15909, 15919, 15921, 15923, 15939, 15963, 15966, 15988, 16032, 16034,
+  16036.
 
 * CVE-2012-4412 The strcoll implementation caches indices and rules for
   large collation sequences to optimize multiple passes.  This cache
index c8e62cf9b49b926178794f8df4de377225a8a82f..408a1ab25ec1f7d46d12cb03ba7d4eb08cbc24bd 100644 (file)
@@ -165,7 +165,7 @@ error_tail (int status, int errnum, const char *message, va_list args)
          if (res != len)
            break;
 
-         if (__builtin_expect (len >= SIZE_MAX / 2, 0))
+         if (__builtin_expect (len >= SIZE_MAX / sizeof (wchar_t) / 2, 0))
            {
              /* This really should not happen if everything is fine.  */
              res = (size_t) -1;
This page took 0.117518 seconds and 5 git commands to generate.