Changeset 4841


Ignore:
Timestamp:
Sep 17, 2012, 6:34:54 PM (7 years ago)
Author:
wisk
Message:

fix crash on windows 32-bit and compute_patch_size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/sys.c

    r4839 r4841  
    169169    while (patch_size < required_size)
    170170    {
    171         int insn_size = zz_lde(code);
     171        int insn_size = zz_lde(code + patch_size);
    172172        if (insn_size == 0)
    173173            return -1;
     
    288288#elif _M_IX86
    289289        /* UNTESTED ! */
    290         uint8_t **dst_addr = *(uint32_t *)(*cur_code + 2);
     290                uint8_t **dst_addr = (uint8_t **)(*(uint32_t *)(cur_code + 2));
    291291        *code = *dst_addr;
    292292#else
Note: See TracChangeset for help on using the changeset viewer.