0f998cdbc26dbbb36ce48500f3fba0f68fd1078a

Under C99, Sec 6.2.4, paragraph 2: The value of a pointer becomes indeterminate when the object it points to reaches the end of its lifetime. `Indeterminate' (3.17.2) includes a trap representation, and any reference to a trap representation is undefined behaviour. Thus, after realloc(res, ...) succeeds, any reference to res (or p) is undefined behaviour. So, instead of using `p - res` after res has been freed, use the existing name for the value we know it has now: len. (We could also use alloced because p == end in this branch, and end = res + alloced, and p = res + len. Of course, we would have to move it up a line to before we update alloced to have a different value.) fix https://github.com/heimdal/heimdal/issues/1164
Heimdal
Heimdal is an implementation of:
- ASN.1/DER,
- PKIX, and
- Kerberos.
For information how to install see here.
There are man pages for most of the commands.
Bug reports and bugs are appreciated. Use GitHub issues.
For more information see the project homepage https://heimdal.software/heimdal/ or the mailing lists:
heimdal-announce@heimdal.software low-volume announcement heimdal-discuss@heimdal.software high-volume discussion
send mail to heimdal-announce-subscribe@heimdal.software and heimdal-discuss-subscribe@heimdal.software respectively to subscribe.
Build Status
Description
Languages
C
92.1%
Roff
2.8%
Shell
2.3%
Makefile
0.7%
M4
0.5%
Other
1.4%