Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 914143 Details for
Bug 1102324
test fails when gnutls is compiled by gcc-4.9.0-1.fc21
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
gnutls.c
gnutls.c (text/plain), 2.25 KB, created by
Jakub Jelinek
on 2014-07-02 12:05:28 UTC
(
hide
)
Description:
gnutls.c
Filename:
MIME Type:
Creator:
Jakub Jelinek
Created:
2014-07-02 12:05:28 UTC
Size:
2.25 KB
patch
obsolete
>typedef __SIZE_TYPE__ size_t; >extern size_t strlen (const char *__s) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern int memcmp (const void *__s1, const void *__s2, size_t __n) > __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); >extern char *strrchr (const char *__s, int __c) > __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); >extern void *__rawmemchr (const void *__s, int __c); >static int >hostname_compare_raw(const char *certname, > size_t certnamesize, const char *hostname) >{ > if (certnamesize == strlen(hostname) && memcmp(hostname, certname, certnamesize) == 0) > return 1; > return 0; >} >static int >hostname_compare_ascii(const char *certname, > size_t certnamesize, const char *hostname) >{ > for (; > *certname && *hostname > && ({ int __c = (*certname); (__c >= 'a' && __c <= 'z' ? __c - 'a' + 'A' : __c); }) == ({ int __c = (*hostname); (__c >= 'a' && __c <= 'z' ? __c - 'a' + 'A' : __c); }); > certname++, hostname++, certnamesize--); > if (certnamesize == 0 && *hostname == '\0') > return 1; > return 0; >} >__attribute__((noinline, noclone)) int >_gnutls_hostname_compare(const char *certname, > size_t certnamesize, const char *hostname, unsigned vflags) >{ > char *p; > unsigned i; > for (i=0;i<certnamesize;i++) { > if (({ int __c = (certname[i]); (__c >= 0x00 && __c <= 0x7f); }) == 0) > return hostname_compare_raw(certname, certnamesize, hostname); > } > if (*certname == '*' && !(vflags & (1 << 12))) { > p = strrchr(certname, '.'); > if (p == ((void *)0) || (__extension__ (__builtin_constant_p ('.') && !__builtin_constant_p (certname) && ('.') == '\0' ? (char *) __rawmemchr (certname, '.') : __builtin_strchr (certname, '.'))) == p || p[1] == 0) { > return 0; > } > certname++; > certnamesize--; > while (1) { > if (hostname_compare_ascii(certname, certnamesize, hostname)) > return 1; > if (*hostname == '\0' || *hostname == '.') > break; > hostname++; > } > return 0; > } else { > return hostname_compare_ascii(certname, certnamesize, hostname); > } >} >int >main () >{ > if (_gnutls_hostname_compare("*.example.net", 13, "www.example.net", 0) != 1) > __builtin_abort (); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1102324
:
914138
| 914143