mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 18:33:16 +00:00
add CLI_ISCONTAINED macro
git-svn: trunk@1807
This commit is contained in:
parent
de72ecc631
commit
1f280d214d
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@
|
|||
#include <stdlib.h>
|
||||
#include "cltypes.h"
|
||||
|
||||
#define CLI_ISCONTAINED(bb, bb_size, sb, sb_size) \
|
||||
(bb_size > 0 && sb_size > 0 && sb_size <= bb_size \
|
||||
&& sb >= bb && sb + sb_size <= bb + bb_size && sb + sb_size > bb)
|
||||
|
||||
typedef struct bitset_tag
|
||||
{
|
||||
unsigned char *bitset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue