[sr #108037] gnutls_cpuid assembler code follows incorrect calling convention on Windows x64

Mann Ern Kang INVALID.NOREPLY at gnu.org
Wed Apr 25 05:25:56 CEST 2012


URL:
  <http://savannah.gnu.org/support/?108037>

                 Summary: gnutls_cpuid assembler code follows incorrect
calling convention on Windows x64
                 Project: GnuTLS
            Submitted by: mannern
            Submitted on: Wed 25 Apr 2012 03:25:56 AM GMT
                Category: Core library
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

The gnutls_cpuid function in file lib\accelerated\x86\coff\cpuid-x86-64-coff.s
follows the Linux parameter passing convention instead of the Windows x64 one,
resulting in a crash (access violation) if hardware acceleration is enabled on
a Windows x64 build of gnutls.

Attaching a patch. This is my first time submitting to gnutls so please let me
know if I missed out anything :)



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 25 Apr 2012 03:25:56 AM GMT  Name: cpuid-x86-64-coff.s  Size: 1kB  
By: mannern

<http://savannah.gnu.org/support/download.php?file_id=25725>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?108037>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





More information about the Gnutls-devel mailing list