mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 07:44:48 -05:00
Introduce strtolinenum to properly check line numbers while parsing: no signs, no spaces, just digits, 0 <= x <= LONG_MAX Properly validate line ranges supplied in diff file to prevent overflows. Also fixes an out of boundary memory access because the resulting values are used as array indices. PR: 195436 Obtained from: OpenBSD (CVS pch.c rev 1.45, 1,46, common.h rev 1.28) MFC after: 1 week |
||
|---|---|---|
| .. | ||
| backupfile.c | ||
| backupfile.h | ||
| common.h | ||
| inp.c | ||
| inp.h | ||
| Makefile | ||
| mkpath.c | ||
| patch.1 | ||
| patch.c | ||
| pathnames.h | ||
| pch.c | ||
| pch.h | ||
| util.c | ||
| util.h | ||