Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 628d548 in mainline


Ignore:
Timestamp:
2011-04-18T19:27:55Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
b678410
Parents:
b8ef4900
Message:

Fix incorrect sizeof expression so that the struct is really initialized with zeroes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/rtld/dynamic.c

    rb8ef4900 r628d548  
    5353
    5454        DPRINTF("memset\n");
    55         memset(info, 0, sizeof(info));
     55        memset(info, 0, sizeof(dyn_info_t));
    5656
    5757        soname_idx = 0;
     
    6262                d_ptr = (void *)((uint8_t *)dp->d_un.d_ptr + bias);
    6363                d_val = dp->d_un.d_val;
     64                DPRINTF("tag=%u ptr=0x%x val=%u\n", (unsigned)dp->d_tag,
     65                        (unsigned)d_ptr, (unsigned)d_val);
    6466
    6567                switch (dp->d_tag) {
     
    108110        DPRINTF("rpath='%s'\n", info->rpath);
    109111        DPRINTF("hash=0x%x\n", (uintptr_t)info->hash);
     112        DPRINTF("dt_rela=0x%x\n", (uintptr_t)info->rela);
     113        DPRINTF("dt_rela_sz=0x%x\n", (uintptr_t)info->rela_sz);
     114        DPRINTF("dt_rel=0x%x\n", (uintptr_t)info->rel);
     115        DPRINTF("dt_rel_sz=0x%x\n", (uintptr_t)info->rel_sz);
    110116
    111117        /*
Note: See TracChangeset for help on using the changeset viewer.