logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

range_validbuf - range check buffer

Description

       range_validbuf does some basic plausibility checks on the buffer buf[0..len-1].

Name

       range_validbuf - range check buffer

Return Value

       If the buffer is implausible (buf is NULL or buf+len has an integer overflow), return 0.

       Otherwise, return 1.

See Also

rangecheck(3)

                                                                                               range_validbuf(3)

Syntax

#include<libowfat/rangecheck.h>

       int range_validbuf(const void* buf,size_t len);

See Also