aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/osip-CVE-2017-7853.patch
blob: 33d95cdb0e0188d8574cdd03c40fc4f0b4e865f9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Fix CVE-2017-7853:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7853
https://savannah.gnu.org/support/index.php?109265

Patch copied from upstream source repository:

https://git.savannah.gnu.org/cgit/osip.git/commit/?id=1ae06daf3b2375c34af23083394a6f010be24a45

From 1ae06daf3b2375c34af23083394a6f010be24a45 Mon Sep 17 00:00:00 2001
From: Aymeric Moizard <amoizard@gmail.com>
Date: Tue, 21 Feb 2017 17:16:26 +0100
Subject: [PATCH]  * fix bug report: sr #109265: SIP message body length
 underflow in libosip2-4.1.0    https://savannah.gnu.org/support/?109265   
 also applicable to current latest version

---
 src/osipparser2/osip_message_parse.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/osipparser2/osip_message_parse.c b/src/osipparser2/osip_message_parse.c
index 1628c60..aa35446 100644
--- a/src/osipparser2/osip_message_parse.c
+++ b/src/osipparser2/osip_message_parse.c
@@ -784,6 +784,12 @@ msg_osip_body_parse (osip_message_t * sip, const char *start_of_buf, const char
     if ('\n' == start_of_body[0] || '\r' == start_of_body[0])
       start_of_body++;
 
+    /* if message body is empty or contains a single CR/LF */
+    if (end_of_body <= start_of_body) {
+      osip_free (sep_boundary);
+      return OSIP_SYNTAXERROR;
+    }
+
     body_len = end_of_body - start_of_body;
 
     /* Skip CR before end boundary. */
-- 
2.13.1

(hplip-minimal): Likewise. Maxim Cournoyer 2023-04-14gnu: hplip: Re-order fields....* gnu/packages/cups.scm (hplip): Re-order fields. Maxim Cournoyer 2023-04-14gnu: hplip: Update to 3.22.10....* gnu/packages/cups.scm (hplip): Update to 3.22.10. [arguments]: Absorb the fix-more-hard-coded-file-names phase from hplip-next into the fix-hard-coded-file-names phase. (hplip-next): Delete variable. Maxim Cournoyer 2023-04-14gnu: cups-minimal: Add config to native inputs unconditionally....* gnu/packages/cups.scm (cups-minimal) [native-inputs]: Always add config. Maxim Cournoyer 2023-04-14Merge branch 'master' into core-updates....Conflicts: gnu/local.mk gnu/packages/build-tools.scm gnu/packages/certs.scm gnu/packages/check.scm gnu/packages/compression.scm gnu/packages/cups.scm gnu/packages/fontutils.scm gnu/packages/gnuzilla.scm gnu/packages/guile.scm gnu/packages/ibus.scm gnu/packages/image-processing.scm gnu/packages/linux.scm gnu/packages/music.scm gnu/packages/nss.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/qt.scm gnu/packages/ruby.scm gnu/packages/shells.scm gnu/packages/tex.scm gnu/packages/video.scm gnu/packages/vulkan.scm gnu/packages/web.scm gnu/packages/webkit.scm gnu/packages/wm.scm Maxim Cournoyer 2023-04-10gnu: cups-minimal: Fix cross-building to riscv64-linux....* gnu/packages/cups.scm (cups-minimal)[arguments]: When building for riscv64-linux replace the config.guess and config.sub files. [native-inputs]: When building for riscv64-linux add config. Efraim Flashner 2023-03-02Merge remote-tracking branch 'savannah/master' into core-updates...Conflicts: gnu/local.mk gnu/packages/autotools.scm gnu/packages/cmake.scm gnu/packages/gnuzilla.scm gnu/packages/haskell.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/samba.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/wxwidgets.scm Christopher Baines 2023-02-19gnu: epson-inkjet-printer-escpr: Update to 1.7.24....* gnu/packages/cups.scm (epson-inkjet-printer-escpr): Update to 1.7.24. Tobias Geerinckx-Rice 2023-02-19gnu: hplip-next: Simplify the fix-more-hard-coded-file-names phase....* gnu/packages/cups.scm (hplip-next) [phases]: Only substitute python files in the fix-more-hard-coded-file-names phase. This greatly reduce the time taken by the phase (from 21 s to 0.4 s) on my system, and is functionally equivalent. Maxim Cournoyer 2023-02-18gnu: hplip-next: Update to 3.22.10....* gnu/packages/cups.scm (hplip-next): Update to 3.22.10. Maxim Cournoyer 2023-02-18gnu: Add hplip-next....* gnu/packages/cups.scm (hplip-next): New variable. Maxim Cournoyer 2023-01-30Merge remote-tracking branch 'origin/master' into core-updates... Conflicts: doc/guix.texi gnu/local.mk gnu/packages/admin.scm gnu/packages/base.scm gnu/packages/chromium.scm gnu/packages/compression.scm gnu/packages/databases.scm gnu/packages/diffoscope.scm gnu/packages/freedesktop.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/guile.scm gnu/packages/inkscape.scm gnu/packages/llvm.scm gnu/packages/openldap.scm gnu/packages/pciutils.scm gnu/packages/ruby.scm gnu/packages/samba.scm gnu/packages/sqlite.scm gnu/packages/statistics.scm gnu/packages/syndication.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm gnu/packages/xml.scm guix/build-system/copy.scm guix/scripts/home.scm Efraim Flashner 2022-11-27gnu: epson-inkjet-printer-escpr: Update to 1.7.22....* gnu/packages/cups.scm (epson-inkjet-printer-escpr): Update to 1.7.22. Tobias Geerinckx-Rice 2022-09-13gnu: cups-pk-helper: Replace polkit with polkit-duktape....This avoids the error: "package `cups-pk-helper@0.2.7' has an invalid input: ("_" #<syntax-transformer polkit>)". On core-updates, polkit-duktape is the default polkit anyway. * gnu/packages/cups.scm (cups-pk-helper)[inputs]: Replace polkit with polkit-duktape. Maxim Cournoyer