#include <string.h>#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <assert.h>#include <unistd.h>Go to the source code of this file.
Defines | |
| #define | INLINE inline |
| #define | ERRORRET return 0; |
Functions | |
| static INLINE int | inBounds (u_int8_t *start, u_int8_t *end, u_int8_t *p) |
| static INLINE int | SafeMemcpy (void *dst, void *src, size_t n, void *start, void *end) |
| static INLINE int | SafeWrite (u_int8_t *start, u_int8_t *end, u_int8_t *dst, u_int8_t *src) |
| static int | SafeRead (u_int8_t *start, u_int8_t *end, u_int8_t *src, u_int8_t *read) |
|
|
Definition at line 45 of file bounds.h. Referenced by SafeMemcpy(), SafeRead(), and SafeWrite(). |
|
|
|
|
||||||||||||||||
|
Definition at line 60 of file bounds.h. Referenced by Asn1Detect(), byte_extract(), ByteJump(), ByteTest(), FTPBounce(), IsDataAt(), SafeMemcpy(), SafeRead(), SafeWrite(), SnortPcre(), string_extract(), and uniSearchReal(). |
|
||||||||||||||||||||||||
|
A Safer Memcpy
Definition at line 81 of file bounds.h. References ERRORRET, inBounds(), and memcpy. Referenced by Frag3Rebuild(), ParseReplacePattern(), PayloadReplace(), RebuildFrag(), RebuildTraverse(), and TraverseFunc(). |
|
||||||||||||||||||||
|
Definition at line 118 of file bounds.h. References ERRORRET, and inBounds(). |
|
||||||||||||||||||||
|
A Safer *a = *b
Definition at line 107 of file bounds.h. References ERRORRET, and inBounds(). |
1.4.2