XSECCryptoX509CRL::loadX509CRLPEM() can read past unterminated buffer

Description

If XSECCryptoX509CRL::loadX509CRLPEM(buf, len) is called with a nonzero len argument, it makes a zero-terminated copy (b) of the passed buffer, but still calls strstr() on the buf pointer passed to the function, not on b. This lets strstr() read past the memory region designated by the caller.

Environment

None

Activity

Scott Cantor June 26, 2016 at 7:28 PM

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Created June 25, 2016 at 8:45 PM
Updated June 29, 2016 at 4:22 PM
Resolved June 26, 2016 at 7:28 PM