]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
feat: add HEIC, HEIF and related mime types
authorJoe Orton <jorton@apache.org>
Tue, 2 Dec 2025 16:10:37 +0000 (16:10 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 2 Dec 2025 16:10:37 +0000 (16:10 +0000)
See https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format

Submitted by: Alexandru Mărășteanu <hello alexei.ro>
Github: closes #580

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1930199 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_ct_sct.c

index dcac6a31646a5ba9704f165f9188179c74346101..cc6b6f18e5642f24b7febcdc2ec7c1febcd37833 100644 (file)
@@ -142,7 +142,7 @@ apr_status_t sct_parse(const char *source,
     ap_assert(rv == APR_SUCCESS);
 
     if (fields->extlen != 0) {
-        if (fields->extlen < len) {
+        if (len < fields->extlen) {
             ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
                          APLOGNO(02770) "SCT size %" APR_SIZE_T_FMT " has no "
                          "space for %hu bytes of extensions",
@@ -176,7 +176,7 @@ apr_status_t sct_parse(const char *source,
     rv = ctutil_deserialize_uint16(&cur, &len, &fields->siglen);
     ap_assert(rv == APR_SUCCESS);
 
-    if (fields->siglen < len) {
+    if (len < fields->siglen) {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
                      APLOGNO(02772) "SCT has no space for signature");
         return APR_EINVAL;