summaryrefslogtreecommitdiffstats
path: root/net/samba/files/patch-security-ab
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba/files/patch-security-ab')
-rw-r--r--net/samba/files/patch-security-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/samba/files/patch-security-ab b/net/samba/files/patch-security-ab
new file mode 100644
index 0000000..76b0957
--- /dev/null
+++ b/net/samba/files/patch-security-ab
@@ -0,0 +1,23 @@
+diff -u -r --new-file --exclude=CVS source/smbd/reply.c samba-2.2.8a/source/smbd/reply.c
+--- source/smbd/reply.c 2003-03-14 15:34:49.000000000 -0600
++++ source/smbd/reply.c 2003-04-05 14:16:35.000000000 -0600
+@@ -1500,6 +1500,9 @@
+
+ for (i=numentries;(i<maxentries) && !finished;i++)
+ {
++ /* check to make sure we have room in the buffer */
++ if ( ((PTR_DIFF(p, outbuf))+DIR_STRUCT_SIZE) > BUFFER_SIZE )
++ break;
+ finished =
+ !get_dir_entry(conn,mask,dirtype,fname,&size,&mode,&date,check_descend);
+ if (!finished)
+@@ -3528,6 +3531,9 @@
+
+
+ for (i=first;i<first+num_to_get;i++) {
++ /* check to make sure we have room in the buffer */
++ if ( (PTR_DIFF(p, outbuf)+28) > BUFFER_SIZE )
++ break;
+ put_dos_date2(p,0,queue[i].time);
+ SCVAL(p,4,(queue[i].status==LPQ_PRINTING?2:3));
+ SSVAL(p,5, queue[i].job);
OpenPOWER on IntegriCloud