Ignore:
Timestamp:
Jun 17, 2010, 10:59:42 AM (15 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.13 (security update)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/smbd/process.c

    r338 r467  
    16461646{
    16471647        static char *orig_inbuf;
     1648        static int orig_size;
    16481649
    16491650        /*
     
    16801681                /* this is the first part of the chain */
    16811682                orig_inbuf = inbuf;
    1682         }
    1683 
     1683                orig_size = size;
     1684        }
     1685
     1686        /* Validate smb_off2 */
     1687        if ((smb_off2 < smb_wct - 4) || orig_size < (smb_off2 + 4 - smb_wct)) {
     1688                exit_server_cleanly("Bad chained packet");
     1689                return;
     1690        }
    16841691        /*
    16851692         * We need to save the output the caller added to the chain so that we
    16861693         * can splice it into the final output buffer later.
    16871694         */
     1695
     1696        if (outsize <= smb_wct) {
     1697                exit_server_cleanly("Bad chained packet");
     1698                return;
     1699        }
    16881700
    16891701        caller_outputlen = outsize - smb_wct;
Note: See TracChangeset for help on using the changeset viewer.