[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )
From: |
Dmitry Goncharov |
Subject: |
gmake-4.2.90 regression (segmentation fault in sum_up_to_nul ) |
Date: |
Tue, 3 Sep 2019 04:14:46 +0000 |
Good morning.
sum_up_to_nul reads 4 bytes starting from the passed string 'p'.
'p' can have fewer than 4 bytes. Usually there more allocated space
after 'p', which prevents this reading from manifesting itself. This
reading manifests itself visibly when 'p' points to the end of the
allocated block of memory, such that p + 3 points to not allocated
memory.
Please have a look at the patch in the attachment.
Tested on both big and little endian, 32 and 64 bit.
regards, Dmitry
fix_sum_up_to_nul.diff
Description: Text Data
- gmake-4.2.90 regression (segmentation fault in sum_up_to_nul ),
Dmitry Goncharov <=