diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-17 19:17:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-17 19:17:16 +0000 |
commit | aa1a4f46da9584240cd6cee6fb652aa73e77015c (patch) | |
tree | 6b3171a1f45b2de0d937cd3e799e8c853f369e10 /source/include/proto.h | |
parent | 83b787f57e8e97ee4d3782e76c3fd003ed567885 (diff) | |
download | samba-aa1a4f46da9584240cd6cee6fb652aa73e77015c.tar.gz samba-aa1a4f46da9584240cd6cee6fb652aa73e77015c.tar.xz samba-aa1a4f46da9584240cd6cee6fb652aa73e77015c.zip |
Fixed bug I introduced last night (sorry). Now truncate incoming prs_struct
buffer size to exact size of incoming data to prevent read overruns into slop
space.
Jeremy.
Diffstat (limited to 'source/include/proto.h')
-rw-r--r-- | source/include/proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/include/proto.h b/source/include/proto.h index cf3929f68de..45fd66cd09a 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -2064,6 +2064,7 @@ BOOL prs_read(prs_struct *ps, int fd, size_t len, int timeout); void prs_mem_free(prs_struct *ps); void prs_give_memory(prs_struct *ps, char *buf, uint32 size, BOOL is_dynamic); char *prs_take_memory(prs_struct *ps, uint32 *psize); +BOOL prs_set_buffer_size(prs_struct *ps, uint32 newsize); BOOL prs_grow(prs_struct *ps, uint32 extra_space); BOOL prs_force_grow(prs_struct *ps, uint32 extra_space); char *prs_data_p(prs_struct *ps); |