svn commit: samba r22042 - in branches: SAMBA_3_0/source/lib SAMBA_3_0/source/nmbd SAMBA_3_0/source/smbd SAMBA_3_0_25/source/lib SAMBA_3_0_25/source/nmbd SAMBA_3_0_25/source/smbd

jra at samba.org jra at samba.org
Mon Apr 2 19:04:58 GMT 2007


Author: jra
Date: 2007-04-02 19:04:57 +0000 (Mon, 02 Apr 2007)
New Revision: 22042

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22042

Log:
Try and clean up my own mess using the API Volker
suggested. I now use :

BOOL is_offset_safe(const char *buf_base, size_t buf_len, char *ptr, size_t off)
char *get_safe_ptr(const char *buf_base, size_t buf_len, char *ptr, size_t off)
char *get_safe_str_ptr(const char *buf_base, size_t buf_len, char *ptr, size_t off)
int get_safe_SVAL(const char *buf_base, size_t buf_len, char *ptr, size_t off, int failval)
int get_safe_IVAL(const char *buf_base, size_t buf_len, char *ptr, size_t off, int failval)

Volker, please criticize and comment. Thanks,

Jeremy.


Modified:
   branches/SAMBA_3_0/source/lib/util.c
   branches/SAMBA_3_0/source/nmbd/nmbd_incomingdgrams.c
   branches/SAMBA_3_0/source/nmbd/nmbd_processlogon.c
   branches/SAMBA_3_0/source/smbd/lanman.c
   branches/SAMBA_3_0_25/source/lib/util.c
   branches/SAMBA_3_0_25/source/nmbd/nmbd_incomingdgrams.c
   branches/SAMBA_3_0_25/source/nmbd/nmbd_processlogon.c
   branches/SAMBA_3_0_25/source/smbd/lanman.c


Changeset:
Sorry, the patch is too large (1245 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22042


More information about the samba-cvs mailing list