Kaydet (Commit) 8d2ac083 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/nss: -fsanitize=nonnull-attribute

Change-Id: Ic3a20f56250d99a347df5deaf785800a2f96e470
üst bb9dad2e
--- 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 @@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment