Changeset f5e6898 in git


Ignore:
Timestamp:
2014-05-30T14:51:13Z (6 years ago)
Author:
Xuefer <xuefer@…>
Branches:
master, trunk
Children:
7b282cc
Parents:
b51efc2
Message:

invalid read of 2 bytes in hashtable

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1495 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mod_disassembler/xc_disassembler.c

    r5f8c3d0 rf5e6898  
    4949            buf = erealloc(buf, bufsize);
    5050        }
    51         memcpy(buf, BUCKET_KEY_S(b), keysize);
     51        memcpy(buf, BUCKET_KEY_S(b), keysize - 2);
    5252        buf[keysize - 2] = buf[keysize - 1] = ""[0];
    5353        keyLength = b->nKeyLength;
     
    8585            buf = erealloc(buf, bufsize);
    8686        }
    87         memcpy(buf, BUCKET_KEY_S(b), keysize);
     87        memcpy(buf, BUCKET_KEY_S(b), keysize - 2);
    8888        buf[keysize - 2] = buf[keysize - 1] = ""[0];
    8989        keyLength = b->nKeyLength;
  • processor/hashtable.m4

    rb51efc2 rf5e6898  
    2525                buf = erealloc(buf, bufsize);
    2626            }
    27             memcpy(buf, BUCKET_KEY_S(srcBucket), keysize);
     27            memcpy(buf, BUCKET_KEY_S(srcBucket), keysize - 2);
    2828            buf[keysize - 2] = buf[keysize - 1] = ""[0];
    2929            keysize = srcBucket->nKeyLength;
Note: See TracChangeset for help on using the changeset viewer.