Blame SOURCES/CVE-2017-18198-part3.patch

61bb31
--- ./libcdio-0.92/include/cdio/bytesex.h	2018-06-05 18:05:16.183586450 +0200
61bb31
+++ ../libcdio-fedora/libcdio-0.94/include/cdio/bytesex.h	2015-05-09 00:27:50.000000000 +0200
61bb31
@@ -197,19 +197,31 @@
61bb31
 }
61bb31
 
61bb31
 /** Convert from ISO 9660 7.3.3 format to uint32_t */
61bb31
-static CDIO_INLINE uint32_t 
61bb31
+static CDIO_INLINE uint32_t
61bb31
 from_733 (uint64_t p)
61bb31
 {
61bb31
   if (uint64_swap_le_be (p) != p)
61bb31
     cdio_warn ("from_733: broken byte order");
61bb31
-    
61bb31
+
61bb31
+  return (UINT32_C(0xFFFFFFFF) & p);
61bb31
+}
61bb31
+
61bb31
+static CDIO_INLINE uint32_t
61bb31
+from_733_with_err (uint64_t p, bool *err)
61bb31
+{
61bb31
+  if (uint64_swap_le_be (p) != p) {
61bb31
+    cdio_warn ("from_733: broken byte order");
61bb31
+    *err = true;
61bb31
+  } else {
61bb31
+    *err = false;
61bb31
+  }
61bb31
   return (UINT32_C(0xFFFFFFFF) & p);
61bb31
 }
61bb31
 
61bb31
 #endif /* CDIO_BYTESEX_H_ */
61bb31
 
61bb31
 
61bb31
-/* 
61bb31
+/*
61bb31
  * Local variables:
61bb31
  *  c-file-style: "gnu"
61bb31
  *  tab-width: 8