mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
dtaction: Fix unsafe use of sprintf
Patch from Robert Tomsick <robert+cde@tomsick.net>: I believe this fixes vulnerability #3 from CERT CA-1999-11.[1] The other uses of sprintf in DtAction seem to be safe. [1] https://www.cert.org/advisories/CA-1999-11.html
This commit is contained in:
parent
4ac42dd84f
commit
70e1c5a55a
1 changed files with 2 additions and 2 deletions
|
@ -898,8 +898,8 @@ GetUserPrompt( void )
|
||||||
XmString cancelLabel;
|
XmString cancelLabel;
|
||||||
XmString okLabel;
|
XmString okLabel;
|
||||||
|
|
||||||
sprintf(prompt, (GETMESSAGE(1,5, "Enter password for user %s:")),
|
snprintf(prompt, BUFSIZ, (GETMESSAGE(1,5, "Enter password for user %s:")),
|
||||||
appArgs.user);
|
appArgs.user);
|
||||||
xmString = XmStringCreateLocalized(prompt);
|
xmString = XmStringCreateLocalized(prompt);
|
||||||
xmString2 =XmStringCreateLocalized(GETMESSAGE(1,6, "Action Invoker - Password"));
|
xmString2 =XmStringCreateLocalized(GETMESSAGE(1,6, "Action Invoker - Password"));
|
||||||
cancelLabel = XmStringCreateLocalized(GETMESSAGE(1,7, "Cancel"));
|
cancelLabel = XmStringCreateLocalized(GETMESSAGE(1,7, "Cancel"));
|
||||||
|
|
Loading…
Reference in a new issue