diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-12 08:22:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-12 08:22:22 +0200 |
commit | 8d2ac08383f894f428da63f4653d0cbd6649e0db (patch) | |
tree | ae9113af902c0e517fb6eb3e83249faa264742d3 /external | |
parent | bb9dad2ef23829b2500c9f99154bca6a8ba7d49a (diff) |
external/nss: -fsanitize=nonnull-attribute
Change-Id: Ic3a20f56250d99a347df5deaf785800a2f96e470
Diffstat (limited to 'external')
-rw-r--r-- | external/nss/ubsan.patch.0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external/nss/ubsan.patch.0 b/external/nss/ubsan.patch.0 index 298ca40d5c09..956e07b3a37f 100644 --- a/external/nss/ubsan.patch.0 +++ b/external/nss/ubsan.patch.0 @@ -1,3 +1,14 @@ +--- nss/lib/certdb/crl.c ++++ nss/lib/certdb/crl.c +@@ -2150,7 +2150,7 @@ + return SECSuccess; + } + /* all CRLs are good, sort them by thisUpdate */ +- qsort(cache->crls, cache->ncrls, sizeof(CachedCrl*), ++ if (cache->ncrls != 0) qsort(cache->crls, cache->ncrls, sizeof(CachedCrl*), + SortCRLsByThisUpdate); + + if (cache->ncrls) --- nss/lib/libpkix/pkix/util/pkix_tools.h +++ nss/lib/libpkix/pkix/util/pkix_tools.h @@ -1458,8 +1458,8 @@ |