simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Aug 26 22:13:10 BST 2024


TL;DR:
  52afffa Mosaic: Fix buffer overflow in game_text_format()

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2024-08-26 22:13:10

commit 52afffaa15f9bf8f58982e12795113d4a5cab907
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=52afffaa15f9bf8f58982e12795113d4a5cab907;hp=262f709e029cca0e6d4f0f39f54eac977802c07f
Author: Ben Hutchings <benh at debian.org>
Date:   Mon Aug 26 20:56:06 2024 +0200

    Mosaic: Fix buffer overflow in game_text_format()
    
    The text format includes newline characters that weren't being
    included in the buffer length calculation.  Fix the calculation and
    assert before returning that the string offset matches the calculated
    length.

 mosaic.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list