simon-git: halibut (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat May 2 10:58:30 BST 2026


TL;DR:
  ae81a3d Fix uninitialised filepos when returning tok_eof.

Repository:     https://git.tartarus.org/simon/halibut.git
On the web:     https://git.tartarus.org/?p=simon/halibut.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2026-05-02 10:58:30

commit ae81a3dcde379c1f9b1eac14b1756f9476b3c485
web diff https://git.tartarus.org/?p=simon/halibut.git;a=commitdiff;h=ae81a3dcde379c1f9b1eac14b1756f9476b3c485;hp=a954b4fbd8e6650528128e5a33e70bddd476baf1
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat May 2 10:39:51 2026 +0100

    Fix uninitialised filepos when returning tok_eof.
    
    When get() returns EOF from a one-character read, it wasn't filling in
    its 'filepos' output argument, so that if an input file contained an
    unclosed brace, you'd get either a nonsense location in the error
    message, or an outright segfault.

 input.c | 1 +
 1 file changed, 1 insertion(+)



More information about the tartarus-commits mailing list