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

(-)a/binutils/bucomm.c (-2 / +6 lines)
Lines 429-436 print_arelt_descr (FILE *file, bfd *abfd, bfd_boolean verbose) Link Here
429
	  const char *ctime_result = (const char *) ctime (&when);
429
	  const char *ctime_result = (const char *) ctime (&when);
430
	  bfd_size_type size;
430
	  bfd_size_type size;
431
431
432
	  /* POSIX format:  skip weekday and seconds from ctime output.  */
432
	  /* PR binutils/17605: Check for corrupt time values.  */
433
	  sprintf (timebuf, "%.12s %.4s", ctime_result + 4, ctime_result + 20);
433
	  if (ctime_result == NULL)
434
	    sprintf (timebuf, _("<time data corrupt>"));
435
	  else
436
	    /* POSIX format:  skip weekday and seconds from ctime output.  */
437
	    sprintf (timebuf, "%.12s %.4s", ctime_result + 4, ctime_result + 20);
434
438
435
	  mode_string (buf.st_mode, modebuf);
439
	  mode_string (buf.st_mode, modebuf);
436
	  modebuf[10] = '\0';
440
	  modebuf[10] = '\0';

Return to bug 17605