Commit Graph

4 Commits

Author SHA1 Message Date
denghao dd0b76a06d submitted-no-sprintf-pre-truncate.diff
From: Kees Cook <kees@ubuntu.com>
Date: Fri, 13 May 2022 23:32:11 +0800
Subject: when a program is compiled with -D_FORTIFY_SOURCE=2, the
2022-11-10 06:02:21 +03:00
denghao 1a91324ad3 merge upstream 2.36 2022-11-09 11:27:14 +03:00
Kees Cook ad65578274 when a program is compiled with -D_FORTIFY_SOURCE=2, the
vsprintf_chk function is called to handle sprintf/snprintf, but it
needlessly pretruncates the destination which changes the results of
sprintf(foo, "%sbar", baz). This patch restores the original behavior
that many programs have depended on.
Bug: http://sourceware.org/bugzilla/show_bug.cgi?id=7075
Bug-Ubuntu: https://launchpad.net/bugs/305901
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563637

Gbp-Pq: Topic ubuntu
Gbp-Pq: Name submitted-no-sprintf-pre-truncate.diff
2022-05-13 23:32:11 +08:00
openKylinBot bf3258cd00 Import Upstream version 2.31 2022-05-13 23:30:52 +08:00