Bug #79 » 0004-fix-warning.patch
src/app-layer-smb.c | ||
---|---|---|
SMBState *sstate = (SMBState *) smb_state;
|
||
uint8_t *p = input;
|
||
/* Check for validity of dataoffset */
|
||
if ((sstate->bytesprocessed - NBSS_HDR_LEN) > sstate->andx.dataoffset) {
|
||
if ((uint16_t)(sstate->bytesprocessed - NBSS_HDR_LEN) > sstate->andx.dataoffset) {
|
||
sstate->andx.paddingparsed = 1;
|
||
SCReturnUInt((uint32_t)(p - input));
|
||
}
|