File: range_validbuf.3

package info (click to toggle)
libowfat 0.28-6
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,068 kB
  • sloc: ansic: 12,863; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.TH range_validbuf 3
.SH NAME
range_validbuf \- range check buffer
.SH SYNTAX
.B #include <rangecheck.h>

int \fBrange_validbuf\fR(const void* buf,size_t len);

.SH DESCRIPTION
range_validbuf does some basic plausibility checks on the buffer
\fIbuf\fR[0..\fIlen\fR-1].
.SH "RETURN VALUE"
If the buffer is implausible (buf is NULL or buf+len has an integer
overflow), return 0.

Otherwise, return 1.
.SH "SEE ALSO"
rangecheck(3)