From dcb2126aee2d54d1ac0f2d11133a93fa01851fcb Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 23 Jan 2025 23:48:44 +0100 Subject: StartsWithGPGClearTextSignature(): don't keep un-written-to pointer to constant string in .data --- apt-pkg/contrib/fileutl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index c74632218..3626f00ec 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1010,7 +1010,7 @@ bool StartsWithGPGClearTextSignature(string const &FileName) } _strrstrip(lineptr); - static const char* SIGMSG = "-----BEGIN PGP SIGNED MESSAGE-----"; + const char* SIGMSG = "-----BEGIN PGP SIGNED MESSAGE-----"; if (result == -1 || strcmp(lineptr, SIGMSG) != 0) return false; return true; -- cgit v1.2.3-70-g09d2