Public bug reported:

Binary package hint: xscreensaver-data

/usr/bin/xscreensaver-text have format string bug .

test case :
emanuel@emanuel-desktop:~$ export HOME=/tmp
emanuel@emanuel-desktop:~$ echo "*textMode:Format_string_%n_bug" > 
/tmp/.xscreensaver
emanuel@emanuel-desktop:~$ xscreensaver-text --verbose --verbose
xscreensaver-text: reading /tmp/.xscreensaver
Modification of a read-only value attempted at /usr/bin/xscreensaver-text line 
191.

the bug can be found at :
  if ($verbose > 1) {
    printf STDERR "$progname: mode:    $text_mode\n";
    printf STDERR "$progname: literal: $text_literal\n";
    printf STDERR "$progname: file:    $text_file\n";
    printf STDERR "$progname: program: $text_program\n";
    printf STDERR "$progname: url:     $text_url\n";
  }

Fix can be using print instead or add format %s to printf .

** Affects: xscreensaver (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/781948

Title:
  Format string bug in xscreensaver-text

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to