[Bug 38714] 64-bit ARM Windows applications from Windows SDK for Windows 10 crash in entry (loader needs to set/randomize security cookie for PE modules)

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jun 8 16:27:32 CDT 2015


https://bugs.winehq.org/show_bug.cgi?id=38714

--- Comment #1 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

update ... Andre made a hack for security cookie initialization which proved my
guess/analysis.

Some simple SDK apps actually started to run now (unless one feeds command line
arguments that triggers vsnprintf/formatmessage/va_arg handling -> another
bug):

--- snip ---
$ ./tools/winedump/winedump arm64/uuidgen.exe 
Contents of arm64/uuidgen.exe: 22512 bytes

File Header
  Machine:                      AA64 (ARM64)
  Number of Sections:           6
  TimeDateStamp:                5503E851 (Sat Mar 14 08:50:41 2015) offset 240
  PointerToSymbolTable:         00000000
  NumberOfSymbols:              00000000
  SizeOfOptionalHeader:         00F0
  Characteristics:              0022
    EXECUTABLE_IMAGE
    LARGE_ADDRESS_AWARE

Optional Header (64bit)
  Magic                              0x20B          523
  linker version                     12.10
  size of code                       0x2000         8192
  size of initialized data           0x1600         5632
  size of uninitialized data         0x0            0
  entrypoint RVA                     0x116c0        71360
  base of code                       0x10000        65536
  image base                         0x1140000000
  section align                      0x10000        65536
  file align                         0x200          512
  required OS version                10.00
  image version                      10.00
  subsystem version                  6.02
  Win32 Version                      0x0            0
  size of image                      0x70000        458752
  size of headers                    0x400          1024
  checksum                           0x12b32        76594
  Subsystem                          0x3 (Windows CUI)
  DLL characteristics:               0xC160
    DYNAMIC_BASE
    NX_COMPAT
    TERMINAL_SERVER_AWARE
  stack reserve size                 0x40000
  stack commit size                  0x2000
  heap reserve size                  0x100000
  heap commit size                   0x1000
  loader flags                       0x0            0
  RVAs & sizes                       0x10           16

...
--- snip ---

--- snip ---
$ ./wine64 arm64/uuidgen.exe 
err:virtual:map_image 0x140010600 0x140000000 67072
err:virtual:map_image 140020008 5368840200
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
e93a8c80-aa6d-407d-bfe8-fe18eefce7fa
--- snip ---

--- snip ---
$ ./wine64 arm64/extidgen.exe 
err:virtual:map_image 0x140010260 0x140000000 66144
err:virtual:map_image 140020000 5368840192
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub

dwExtensionID0 = 0x087D0D4D;
dwExtensionID1 = 0x44869C5A;
dwExtensionID2 = 0x29DC7C85;
dwExtensionID3 = 0x468DAFE7;
--- snip ---

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list