mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 17:52:43 +00:00
Off by one error in reading mmap data.
Submitted by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
This commit is contained in:
parent
0c95c70577
commit
47ecee5e83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70716
@ -219,11 +219,12 @@ fastfind
|
|||||||
p = path + count;
|
p = path + count;
|
||||||
foundchar = p - 1;
|
foundchar = p - 1;
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
#ifdef FF_MMAP
|
#ifdef FF_MMAP
|
||||||
|
for (; len > 0;) {
|
||||||
c = (u_char)*paddr++;
|
c = (u_char)*paddr++;
|
||||||
len--;
|
len--;
|
||||||
#else
|
#else
|
||||||
|
for (;;) {
|
||||||
c = getc(fp);
|
c = getc(fp);
|
||||||
#endif /* FF_MMAP */
|
#endif /* FF_MMAP */
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user