simon-git: putty (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Tue May 26 18:55:17 BST 2026


TL;DR:
  026d2c17 fuzzterm: fix segfault from missing vtable entry.

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:           2026-05-26 18:55:17

commit 026d2c17b5f390482afa15953479d96e6b009d3a
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=026d2c17b5f390482afa15953479d96e6b009d3a;hp=f27bf4415996ee4f707f7dcae84f0eadfaa07757
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue May 26 18:44:20 2026 +0100

    fuzzterm: fix segfault from missing vtable entry.
    
    fuzzterm would segfault after first processing a batch of input, as
    soon as term_update tried to call win_set_raw_mouse_mode_pointer()
    which dereferenced an uninitialised vtable entry.
    
    Since this could be provoked by sending any output at all to
    fuzzterm's stdin, I've added a regression test. This also required me
    to fix the memory leaks when fuzzterm exited, since those tests run
    under Leak Sanitiser.
    
    Thanks to Yukihiro Nakamura for the report and main patch.

 Buildscr        | 1 +
 test/fuzzterm.c | 4 ++++
 2 files changed, 5 insertions(+)



More information about the tartarus-commits mailing list