library/src/exploitation/WebExploitation/AppEngineErrCodes/BP-WebExploitASPErrCodes.cc
// Generates an allocated array of ASP error codes
Generates an allocated array of ASP error codes
Generates an allocated array of ASP error codes
P_BP_ASP_ERR_CODES BP_ASPGenErrCodeArray()
{
	size_t retSize = sizeof(aspErrCodes);
	P_BP_ASP_ERR_CODES retTable = (P_BP_ASP_ERR_CODES) bpcalloc(retSize, 1);
	if(!retTable)
		return NULL;
	BP_ASP_ERR_CODES nullCmp;
	memset(&nullCmp, 0x00, sizeof(nullCmp));
	size_t x = 0;
	for(x = 0; ( sizeof(BP_ASP_ERR_CODES) * x ) < sizeof(aspErrCodes); x++){
		retTable[x].description = bpstrdup(aspErrCodes[x].description);
		retTable[x].aspBaseCode = bpstrdup(aspErrCodes[x].aspBaseCode);
	}
	return retTable;
}
P_BP_ASP_ERR_CODES BP_ASPGenErrCodeArray ( ) { size_t retSize = sizeof ( aspErrCodes ) ; P_BP_ASP_ERR_CODES retTable = ( P_BP_ASP_ERR_CODES ) bpcalloc ( retSize , 1 ) ; if ( ! retTable ) return NULL ; BP_ASP_ERR_CODES nullCmp ; memset ( & nullCmp , 0x00 , sizeof ( nullCmp ) ) ; size_t x = 0 ; for ( x = 0 ; ( sizeof ( BP_ASP_ERR_CODES ) * x ) < sizeof ( aspErrCodes ) ; x ++ ) { retTable [ x ] . description = bpstrdup ( aspErrCodes [ x ] . description ) ; retTable [ x ] . aspBaseCode = bpstrdup ( aspErrCodes [ x ] . aspBaseCode ) ; } return retTable ; }
Generates an allocated array of ASP error codes
Generates an allocated array of ASP error codes
// duplicate the array // duplicate string in table // duplicate base code string in table