View | Details | Raw Unified | Return to bug 17829
Collapse All | Expand All

(-)a/stdio-common/vfprintf.c (-1 / +1 lines)
Lines 1564-1570 vfprintf (FILE *s, const CHAR_T *format, va_list ap) Link Here
1564
	prec = 0;
1564
	prec = 0;
1565
      if (prec > width && prec > WORK_BUFFER_SIZE - 32)
1565
      if (prec > width && prec > WORK_BUFFER_SIZE - 32)
1566
	{
1566
	{
1567
	  if (__glibc_unlikely (prec >= INT_MAX / sizeof (CHAR_T) - 32))
1567
	  if (__glibc_unlikely (prec >= SIZE_MAX / sizeof (CHAR_T) - 32))
1568
	    {
1568
	    {
1569
	      __set_errno (EOVERFLOW);
1569
	      __set_errno (EOVERFLOW);
1570
	      done = -1;
1570
	      done = -1;

Return to bug 17829