https://git.kernel.org/pub/scm/network/connman/connman.git/patch/?id=d1a5ede5d255bde8ef707f8441b997563b9312bd From d1a5ede5d255bde8ef707f8441b997563b9312bd Mon Sep 17 00:00:00 2001 From: Nathan Crandall Date: Tue, 12 Jul 2022 08:56:34 +0200 Subject: gweb: Fix OOB write in received_data() There is a mismatch of handling binary vs. C-string data with memchr and strlen, resulting in pos, count, and bytes_read to become out of sync and result in a heap overflow. Instead, do not treat the buffer as an ASCII C-string. We calculate the count based on the return value of memchr, instead of strlen. Fixes: CVE-2022-32292 --- gweb/gweb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index 12fcb1d8..13c6c5f2 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -918,7 +918,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, } *pos = '\0'; - count = strlen((char *) ptr); + count = pos - ptr; if (count > 0 && ptr[count - 1] == '\r') { ptr[--count] = '\0'; bytes_read--; -- cgit >refslogtreecommitdiff
path: root/gnu/packages/telephony.scm
AgeCommit message (Expand)Author
2023-05-03gnu: Add sipp....* gnu/packages/telephony.scm (sipp): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Ivan Gankevich
2023-04-28gnu: mumble: Update to 1.4.287, fix build....* gnu/packages/telephony.scm (mumble): Update to 1.4.287. [inputs]: Use openssl-1.1. 宋文武
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-03-31gnu: ucommon: Explicitly select C++ version....* gnu/packages/telephony.scm (ucommon)[arguments]: Set -std=c++14. Lars-Dominik Braun
2023-03-28gnu: pjproject: Update to 2.13....* gnu/packages/telephony.scm (pjproject): Update to 2.13. [arguments]: Disable the resolver-related tests. Maxim Cournoyer