simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Nov 25 19:54:11 GMT 2024


TL;DR:
  0244bca5 Unix PuTTY/pterm: remove a premature cmdline_arg_list_free.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2024-11-25 19:54:11

commit 0244bca5cb6db0bd1343f9728056a134dfaaec2a
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=0244bca5cb6db0bd1343f9728056a134dfaaec2a;hp=4dec8fda634d31a4ee09488ee30909fc9fe11b54
Author: Simon Tatham <anakin at pobox.com>
Date:   Mon Nov 25 19:45:24 2024 +0000

    Unix PuTTY/pterm: remove a premature cmdline_arg_list_free.
    
    If this occurs before cmdline_run_saved, then the latter will use its
    saved pointers to arguments in the freed CmdlineArgList.
    
    Affects uses of PuTTY without a saved session (like 'putty -ssh
    foohost'), and a very small number of pterm options, in particular
    -sessionlog.
    
    This is the simplest possible fix: just remove the free completely,
    so that the parsed command-line arguments leak. There's at most one
    instance of them per process, so it doesn't matter.

 unix/main-gtk-simple.c | 2 --
 1 file changed, 2 deletions(-)



More information about the tartarus-commits mailing list