Changeset 851 for server


Ignore:
Timestamp:
Oct 8, 2008, 2:55:27 PM (14 years ago)
Author:
andersk
Message:
Check the right message length.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/oursrc/execsys/gitproxy.pl

    r850 r851  
    3434    $msg .= $buf;
    3535    my $len;
    36     if (($len) = $msg =~ m/^([[:xdigit:]]{4})/ and length($') >= hex($len)) {
     36    if (($len) = $msg =~ m/^([[:xdigit:]]{4})/ and length($msg) >= hex($len)) {
    3737        foreach (split("\0", $')) {
    3838            last if ($host) = m/^host=(.*)$/;
Note: See TracChangeset for help on using the changeset viewer.