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
bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memmove, memset -- byte string operations LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <string.h> int bcmp(const void *b1, const void *b2, size_t len); void bcopy(const void *src, void *dst, size_t len); void bzero(void *b, size_t len); 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 * 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 null bytes as the routines listed in string(3) do. See the specific manual pages for more information. SEE ALSO
bcmp(3), bcopy(3), bzero(3), memccpy(3), memchr(3), memcmp(3), memcpy(3), memmove(3), memset(3) STANDARDS
The functions memchr(), memcmp(), memcpy(), memmove(), and memset() conform to ISO/IEC 9899:1990 (``ISO C90''). HISTORY
The functions bzero() and memccpy() appeared in 4.3BSD; the functions bcmp(), bcopy(), appeared in 4.2BSD. BSD
June 4, 1993 BSD
Man Page