Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/kern

Module Name:    src
Committed By:   martin
Date:           Mon Aug 26 12:24:10 UTC 2013

Modified Files:
        src/sys/kern: exec_elf.c

Log Message:
Fix a comment and a few minor optimizations:

 * elf_check_header() already ensures eh.e_phnum > MAXPHNUM, so do not
   test it again at the call site
 * is_dyn == true implies a successfull call to elf_check_header(eh, ET_DYN),
   so no need to call elf_check_header(eh, ET_EXEC)

>From Maxime Villard.

To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/kern/exec_elf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index