This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16462] New: memcpy corrupted the data


https://sourceware.org/bugzilla/show_bug.cgi?id=16462

            Bug ID: 16462
           Summary: memcpy corrupted the data
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: glin at suse dot com
                CC: drepper.fsp at gmail dot com

While building OVMF with glibc 2.18, some data in the intermediate C file were
corrupted. With git bisect, the culprit was identified:

https://sourceware.org/git/?p=glibc.git;a=commit;h=2d48b41c8fa610067c4d664ac2339ae6ca43e78c

After reverting the patch, everything works again.

Steps to reproduce:
1. clone the edk2 source code from https://github.com/tianocore/edk2

2. build the utility program with glibc 2.18
$ make -C BaseTools/

3. generate the intermediate C file with the attached files
./BaseTools/Source/C/bin/VfrCompile -l -n --string-db
SecureBootConfigDxeStrDefs.hpk --output-directory . SecureBootConfig.i

4. compare the generated SecureBootConfig.c with the correct one (attached
later)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]