Project

General

Profile

Bug #11222

elfdump's dump_hex_bytes will overflow

Added by Rich Lowe 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

dump_hex_bytes does:

           (void) snprintf(str, sizeof (string),
            MSG_ORIG(MSG_HEXDUMP_TOK), (int)*ldata);
        str += 2;

in a loop. If we're going to move `str` we can't keep using the same length.

Also available in: Atom PDF