Memory overflow detection when packing/unpacking BLOB added
This commit is contained in:
@@ -167,7 +167,7 @@ bool eap::credentials_tls::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR *
|
||||
}
|
||||
|
||||
|
||||
void eap::credentials_tls::pack(_Inout_ unsigned char *&cursor) const
|
||||
void eap::credentials_tls::pack(_Inout_ eapserial::cursor_out &cursor) const
|
||||
{
|
||||
eap::credentials::pack(cursor);
|
||||
eapserial::pack(cursor, m_cert);
|
||||
@@ -182,7 +182,7 @@ size_t eap::credentials_tls::get_pk_size() const
|
||||
}
|
||||
|
||||
|
||||
void eap::credentials_tls::unpack(_Inout_ const unsigned char *&cursor)
|
||||
void eap::credentials_tls::unpack(_Inout_ eapserial::cursor_in &cursor)
|
||||
{
|
||||
eap::credentials::unpack(cursor);
|
||||
eapserial::unpack(cursor, m_cert);
|
||||
|
Reference in New Issue
Block a user