mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
fb29146174
PR: 240766 Submitted by: jbeich MFH: 2019Q4
12 lines
448 B
C++
12 lines
448 B
C++
--- htneent.cc.orig 2016-12-06 20:36:25 UTC
|
|
+++ htneent.cc
|
|
@@ -57,7 +57,7 @@ static ht_view *htneentrypoints_init(Bounds *b, File *
|
|
NE_ENTRYPOINT_HEADER e;
|
|
|
|
uint32 index = 1;
|
|
- while (o + sizeof e < h+ne_shared->hdr.enttab+ne_shared->hdr.cbenttab) {
|
|
+ while ((o + sizeof e) < h+ne_shared->hdr.enttab+ne_shared->hdr.cbenttab) {
|
|
file->seek(o);
|
|
file->read(&e, sizeof e);
|
|
createHostStruct(&e, NE_ENTRYPOINT_HEADER_struct, little_endian);
|