Snap for 6462456 from 53985c487c43067651a3886b43acf0271309419f to r-keystone-qcom-release
Change-Id: I24de478bc71bfade719519ff745d5ce0fb798218
diff --git a/README.version b/README.version
new file mode 100644
index 0000000..5a727df
--- /dev/null
+++ b/README.version
@@ -0,0 +1,10 @@
+URL: https://github.com/apple/cups
+Version: v2.2.9
+License: LGPL
+Description:
+CUPS is the standards-based, open source printing system developed by Apple Inc. for macOS® and other UNIX®-like operating systems. CUPS uses the Internet Printing Protocol (IPP) to support printing to local and network printers.
+
+Local Modifications:
+ Fix for CVE-2020-3898 (I1e4988e753c0ed1df43937b3009fd62ecd81ccc0)
+ Fix for CVE-2019-8842 (Ib3d4260899941f0c8050cf6d77a9022db63bdc66)
+ Use boringSSL
diff --git a/cups/ipp.c b/cups/ipp.c
index cc9c6af..d46cc37 100644
--- a/cups/ipp.c
+++ b/cups/ipp.c
@@ -2960,7 +2960,7 @@
* Read 32-bit "extension" tag...
*/
- if ((*cb)(src, buffer, 4) < 1)
+ if ((*cb)(src, buffer, 4) < 4)
{
DEBUG_puts("1ippReadIO: Callback returned EOF/error");
_cupsBufferRelease((char *)buffer);
diff --git a/cups/ppd.c b/cups/ppd.c
index 5f27484..46ee8a9 100644
--- a/cups/ppd.c
+++ b/cups/ppd.c
@@ -1776,8 +1776,7 @@
constraint->choice1, constraint->option2,
constraint->choice2))
{
- case 0 : /* Error */
- case 1 : /* Error */
+ default : /* Error */
pg->ppd_status = PPD_BAD_UI_CONSTRAINTS;
goto error;