library/src/exploitation/WebExploitation/BP-WebExploitation.cc
// Gets the anchor variable lengths (total length of all variable names)
Gets the anchor variable lengths (total length of all variable names)
Gets the anchor variable lengths ( total length of all variable names )
size_t BP_GetAnchorVarMaxLengths(P_BP_HTML_ANCHOR_VAR_LIST anchorVars) {
	size_t nameLengths = 0;
	for (anchorVars = anchorVars->first->next; anchorVars != NULL; anchorVars = anchorVars->next) {
		nameLengths += anchorVars->nameLen;
		nameLengths += anchorVars->contentLen;
		nameLengths += 16;
	}
	return nameLengths;
}
size_t BP_GetAnchorVarMaxLengths ( P_BP_HTML_ANCHOR_VAR_LIST anchorVars ) { size_t nameLengths = 0 ; for ( anchorVars = anchorVars -> first -> next ; anchorVars != NULL ; anchorVars = anchorVars -> next ) { nameLengths += anchorVars -> nameLen ; nameLengths += anchorVars -> contentLen ; nameLengths += 16 ; } return nameLengths ; }
Gets the anchor variable lengths (total length of all variable names)
Gets the anchor variable lengths ( total length of all variable names )
// variable returned from routine which contains the size += for a // allocation to be made with. // walk the anchor variable list and set the arbitrary parameters // Name length + content length + 16 bytes arbitrary padding // return a size proper for storing results