File: fix_format_string.patch

package info (click to toggle)
barada-pam 0.5.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: sh: 969; cpp: 551; makefile: 36
file content (15 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-01-21
Description: Build nicely with hardening flags set

--- a/src/Util.cpp
+++ b/src/Util.cpp
@@ -55,7 +55,7 @@ void Util::hexDump(const pam_handle_t *p
     sprintf(output+(i*3), "%02X ", *(buf+i));
   }
 
-  pam_syslog(pamh, LOG_EMERG, output);
+  pam_syslog(pamh, LOG_EMERG, "%s", output);
 
   free(output);
 }