summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--external/nss/ubsan.patch.011
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 @@