Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rangecheck(3) [debian man page]

rangecheck(3)						     Library Functions Manual						     rangecheck(3)

NAME
rangecheck.h - pointer range checking SYNTAX
#include <rangecheck.h> int range_validbuf(const void* buf,size_t len); int range_ptrinbuf(const void* buf,size_t len,const void* ptr); int range_bufinbuf(const void* buf1,size_t len1, const void* buf2,size_t len2); int range_arrayinbuf(const void* buf,size_t len, const void* arraystart, size_t elements,size_t membersize); int range_strinbuf(const void* buf,size_t len,const void* string); int range_str2inbuf(const void* buf,size_t len,const void* string); int range_str4inbuf(const void* buf,size_t len,const void* string); DESCRIPTION
rangecheck.h provides several routines for range checking pointers. These routines are meant for code that has to validate the syntax and semantics of buffers coming in from untrusted sources (like a network connection or an input file). RETURN VALUE
The routines all return 0 on error, or 1 if the pointers were in range. SEE ALSO
range_validbuf(3), range_ptrinbuf(3), range_bufinbuf(3), range_arrayinbuf(3), range_strinbuf(3), range_str2inbuf(3), range_str4inbuf(3) rangecheck(3)

Check Out this Related Man Page

BSTRING(3)						   BSD Library Functions Manual 						BSTRING(3)

NAME
memccpy, memchr, memcmp, memcpy, memmem, memmove, memset -- byte string operations LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <string.h> void * memchr(const void *b, int c, size_t len); int memcmp(const void *b1, const void *b2, size_t len); void * memccpy(void *dst, const void *src, int c, size_t len); void * memcpy(void *dst, const void *src, size_t len); void * memmem(const void *block, size_t blen, const void *pat, size_t plen); void * memmove(void *dst, const void *src, size_t len); void * memset(void *b, int c, size_t len); DESCRIPTION
These functions operate on variable length strings of bytes. They do not check for terminating nul bytes as the routines listed in string(3) do. See the specific manual pages for more information. SEE ALSO
memccpy(3), memchr(3), memcmp(3), memcpy(3), memmem(3), memmove(3), memset(3) STANDARDS
The functions memchr(), memcmp(), memcpy(), memmove(), and memset() conform to ANSI X3.159-1989 (``ANSI C89''). HISTORY
The function memccpy() appeared in 4.3BSD. BSD
February 9, 2007 BSD
Man Page