Skip to content

Commit 4b24687

Browse files
authored
Merge pull request #6 from turekt/master
Fix for Bug 3392609 - Buffer overflow
2 parents aa2dcde + 67c9eb2 commit 4b24687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

disasm/ndisasm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int main(int argc, char **argv)
297297
p = q = buffer;
298298
nextsync = next_sync(offset, &synclen);
299299
do {
300-
uint32_t to_read = buffer + sizeof(buffer) - p;
300+
int32_t to_read = buffer + sizeof(buffer) - p;
301301
if ((nextsync || synclen) &&
302302
to_read > nextsync - offset - (p - q))
303303
to_read = nextsync - offset - (p - q);

0 commit comments

Comments
 (0)