detect/bytemath: bump length to uint32_t

This puts the logic in line with the other payload inspection
functions.
pull/10052/head
Victor Julien 1 year ago
parent fb497bfa7e
commit 83ed2c3b97

@ -85,7 +85,7 @@ static inline bool DetectByteMathValidateNbytesOnly(const DetectByteMathData *da
}
int DetectByteMathDoMatch(DetectEngineThreadCtx *det_ctx, const DetectByteMathData *data,
const Signature *s, const uint8_t *payload, uint16_t payload_len, uint8_t nbytes,
const Signature *s, const uint8_t *payload, const uint32_t payload_len, uint8_t nbytes,
uint64_t rvalue, uint64_t *value, uint8_t endian)
{
if (payload_len == 0) {

@ -28,6 +28,6 @@ void DetectBytemathRegister(void);
SigMatch *DetectByteMathRetrieveSMVar(const char *, const Signature *);
int DetectByteMathDoMatch(DetectEngineThreadCtx *, const DetectByteMathData *, const Signature *,
const uint8_t *, uint16_t, uint8_t, uint64_t, uint64_t *, uint8_t);
const uint8_t *, const uint32_t, uint8_t, uint64_t, uint64_t *, uint8_t);
#endif /* __DETECT_BYTEMATH_H__ */

Loading…
Cancel
Save