|
|
|
|
@ -246,8 +246,8 @@ static int DetectBytejumpMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx,
|
|
|
|
|
extbytes = ByteExtractStringUint64(&val, data->base,
|
|
|
|
|
data->nbytes, (const char *)ptr);
|
|
|
|
|
if (extbytes <= 0) {
|
|
|
|
|
SCLogError(SC_ERR_BYTE_EXTRACT_FAILED,"Error extracting %d bytes "
|
|
|
|
|
"of string data: %d", data->nbytes, extbytes);
|
|
|
|
|
SCLogDebug("error extracting %d bytes of string data: %d",
|
|
|
|
|
data->nbytes, extbytes);
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -255,8 +255,8 @@ static int DetectBytejumpMatch(ThreadVars *t, DetectEngineThreadCtx *det_ctx,
|
|
|
|
|
int endianness = (data->flags & DETECT_BYTEJUMP_LITTLE) ? BYTE_LITTLE_ENDIAN : BYTE_BIG_ENDIAN;
|
|
|
|
|
extbytes = ByteExtractUint64(&val, endianness, data->nbytes, ptr);
|
|
|
|
|
if (extbytes != data->nbytes) {
|
|
|
|
|
SCLogError(SC_ERR_BYTE_EXTRACT_FAILED,"Error extracting %d bytes "
|
|
|
|
|
"of numeric data: %d", data->nbytes, extbytes);
|
|
|
|
|
SCLogDebug("error extracting %d bytes of numeric data: %d",
|
|
|
|
|
data->nbytes, extbytes);
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|