Project

General

Profile

Bug #79 » 0004-fix-warning.patch

This ends up being a no op, but I included it since it is incremental. - Kirby Kuehl, 02/08/2010 09:33 AM

View differences:

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));
}
(4-4/5)