Memory overflow detection when packing/unpacking BLOB added
This commit is contained in:
@@ -127,7 +127,7 @@ namespace eap {
|
||||
///
|
||||
/// \param[inout] cursor Memory cursor
|
||||
///
|
||||
virtual void pack(_Inout_ unsigned char *&cursor) const;
|
||||
virtual void pack(_Inout_ eapserial::cursor_out &cursor) const;
|
||||
|
||||
///
|
||||
/// Returns packed size of a configuration
|
||||
@@ -141,7 +141,7 @@ namespace eap {
|
||||
///
|
||||
/// \param[inout] cursor Memory cursor
|
||||
///
|
||||
virtual void unpack(_Inout_ const unsigned char *&cursor);
|
||||
virtual void unpack(_Inout_ eapserial::cursor_in &cursor);
|
||||
|
||||
///
|
||||
/// Returns EAP method type of this configuration
|
||||
|
@@ -133,7 +133,7 @@ namespace eap
|
||||
///
|
||||
/// \param[inout] cursor Memory cursor
|
||||
///
|
||||
virtual void pack(_Inout_ unsigned char *&cursor) const;
|
||||
virtual void pack(_Inout_ eapserial::cursor_out &cursor) const;
|
||||
|
||||
///
|
||||
/// Returns packed size of a configuration
|
||||
@@ -147,7 +147,7 @@ namespace eap
|
||||
///
|
||||
/// \param[inout] cursor Memory cursor
|
||||
///
|
||||
virtual void unpack(_Inout_ const unsigned char *&cursor);
|
||||
virtual void unpack(_Inout_ eapserial::cursor_in &cursor);
|
||||
|
||||
/// \name Storage
|
||||
/// @{
|
||||
|
@@ -158,7 +158,7 @@ bool eap::config_method_ttls::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERRO
|
||||
}
|
||||
|
||||
|
||||
void eap::config_method_ttls::pack(_Inout_ unsigned char *&cursor) const
|
||||
void eap::config_method_ttls::pack(_Inout_ eapserial::cursor_out &cursor) const
|
||||
{
|
||||
eap::config_method_tls::pack(cursor);
|
||||
if (m_inner) {
|
||||
@@ -195,7 +195,7 @@ size_t eap::config_method_ttls::get_pk_size() const
|
||||
}
|
||||
|
||||
|
||||
void eap::config_method_ttls::unpack(_Inout_ const unsigned char *&cursor)
|
||||
void eap::config_method_ttls::unpack(_Inout_ eapserial::cursor_in &cursor)
|
||||
{
|
||||
eap::config_method_tls::unpack(cursor);
|
||||
|
||||
|
@@ -149,7 +149,7 @@ bool eap::credentials_ttls::load(_In_ IXMLDOMNode *pConfigRoot, _Out_ EAP_ERROR
|
||||
}
|
||||
|
||||
|
||||
void eap::credentials_ttls::pack(_Inout_ unsigned char *&cursor) const
|
||||
void eap::credentials_ttls::pack(_Inout_ eapserial::cursor_out &cursor) const
|
||||
{
|
||||
eap::credentials_tls::pack(cursor);
|
||||
if (m_inner) {
|
||||
@@ -186,7 +186,7 @@ size_t eap::credentials_ttls::get_pk_size() const
|
||||
}
|
||||
|
||||
|
||||
void eap::credentials_ttls::unpack(_Inout_ const unsigned char *&cursor)
|
||||
void eap::credentials_ttls::unpack(_Inout_ eapserial::cursor_in &cursor)
|
||||
{
|
||||
eap::credentials_tls::unpack(cursor);
|
||||
|
||||
|
Reference in New Issue
Block a user