You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ASN1Reader class has to keep track of the parsing state, and in one location it is
possible to cause the reader to access data outside the bounds of the buffer being read.
This occurs in the code excerpt below when the end of the container is set to a point that
might be beyond the end of the buffer containing the parsed data.
If Value + ValueLen runs beyond mContainerEnd , a future access might be outside the bounds of
the buffer, as other locations within the code assume that mContainerEnd falls within the
bounds of the buffer passed to the Init function. This issue resulted in various out of
bounds read accesses throughout the reader, depending on the type being read.
The text was updated successfully, but these errors were encountered:
Problem
The
ASN1Reader
class has to keep track of the parsing state, and in one location it ispossible to cause the reader to access data outside the bounds of the buffer being read.
This occurs in the code excerpt below when the end of the container is set to a point that
might be beyond the end of the buffer containing the parsed data.
In
ASN1Reader::EnterContainer
, we find:If
Value + ValueLen
runs beyondmContainerEnd
, a future access might be outside the bounds ofthe buffer, as other locations within the code assume that
mContainerEnd
falls within thebounds of the buffer passed to the Init function. This issue resulted in various out of
bounds read accesses throughout the reader, depending on the type being read.
The text was updated successfully, but these errors were encountered: