[BACK]Return to elf.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / nm

Diff for /src/usr.bin/nm/elf.c between version 1.25 and 1.26

version 1.25, 2015/01/19 20:25:36 version 1.26, 2015/02/06 23:21:59
Line 32 
Line 32 
 #include <elf_abi.h>  #include <elf_abi.h>
 #include <errno.h>  #include <errno.h>
 #include <err.h>  #include <err.h>
   #include <stdint.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <limits.h>  
 #include <ctype.h>  #include <ctype.h>
 #include "elfuncs.h"  #include "elfuncs.h"
 #include "util.h"  #include "util.h"
Line 454 
Line 454 
         for (i = 0; i < eh->e_shnum; i++) {          for (i = 0; i < eh->e_shnum; i++) {
                 if (!strcmp(shstr + shdr[i].sh_name, strtab)) {                  if (!strcmp(shstr + shdr[i].sh_name, strtab)) {
                         *pstabsize = shdr[i].sh_size;                          *pstabsize = shdr[i].sh_size;
                         if (*pstabsize > SIZE_T_MAX) {                          if (*pstabsize > SIZE_MAX) {
                                 warnx("%s: corrupt file", name);                                  warnx("%s: corrupt file", name);
                                 return (1);                                  return (1);
                         }                          }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26