dnkl/foot
41
2.0k
Fork
You've already forked foot
243

v1.26.1 aborts with xsnprintf: No buffer space available when running opencode #2357

Closed
opened 2026年05月23日 14:11:54 +02:00 by alotofnoodles · 1 comment

Foot Version

foot version: 1.26.1 +pgo +ime +graphemes +toplevel-tag +blur -assertions

TERM environment variable

xterm-256color

Compositor Name and Version

Hyprland 0.54.3

Distribution

Arch Linux (Omarchy)

Terminal multiplexer

None

Shell, TUI, application

zshrc

Server/standalone mode

  • Standalone
  • Server

Foot config

[main]
include=~/.config/omarchy/current/theme/foot.ini
term=xterm-256color
font=Berkeley Mono:size=10
pad=14x14
initial-window-mode=windowed
workers=0
[scrollback]
lines=10000
[cursor]
style=block
blink=no
[key-bindings]
clipboard-copy=Control+Insert
primary-paste=none
clipboard-paste=Shift+Insert

Description of Bug and Steps to Reproduce

Launching opencode inside foot reliably crashes foot with SIGABRT. Root cause appears to be an xsnprintf buffer overflow inside foot itself

Steps to reproduce:

foot -d info -- opencode
Foot opens, renders briefly, then aborts (exit 134).

Relevant logs, stacktraces, etc.

info: main.c:427: version: 1.26.1 +pgo +ime +graphemes +toplevel-tag +blur -assertions
info: main.c:434: arch: Linux x86_64/64-bit
info: main.c:451: locale: en_US.UTF-8
info: config.c:3724: loading configuration from /home/xxx/.config/foot/foot.ini
info: config.c:905: imported sub-configuration from /home/xxx/.config/omarchy/current/theme/foot.ini
info: fcft.c:358: fcft: 3.3.3 +graphemes +runs +svg(nanosvg) -assertions
info: fcft.c:397: fontconfig: 2.17.1, freetype: 2.14.3, harfbuzz: 14.2.0, utf8proc: 2.11.3 (Unicode 17.0.0)
info: wayland.c:1838: warn: compositor does not implement the xdg-toplevel-icon protocol
info: wayland.c:1852: DP-4: 5120x2880+0x0@60Hz StudioDisplay 26.96" scale=2, DPI=217.90/217.90
info: shm.c:1061: using 8-bit RGB surfaces
info: wayland.c:2123: requesting SSD decorations
info: terminal.c:856: cell width=16, height=33
info: terminal.c:706: using 0 rendering threads
info: wayland.c:1182: using SSD decorations
info: terminal.c:1513: gamma-correct blending: disabled
err: xsnprintf.c:42: xvsnprintf: No buffer space available

Coredump

PID: 10688 (foot)
Signal: 6 (ABRT)
Command Line: foot --working-directory=/home/xxx
Stack (stripped — frames #3–#10 in foot, called via libc abort):
#0 libc.so.6 + 0x9a29c
#1 raise (libc.so.6 + 0x3e7d0)
#2 abort (libc.so.6 + 0x25681)
#3 /usr/bin/foot + 0x3a684 ← likely xsnprintf.c:42 die path
#4 /usr/bin/foot + 0x80cd
#5 /usr/bin/foot + 0x3c5f3
#6 /usr/bin/foot + 0x12096
#7 /usr/bin/foot + 0x45be0
#8 libc.so.6 + 0x27741
#9 __libc_start_main
#10 /usr/bin/foot + 0x42635

### Foot Version foot version: 1.26.1 +pgo +ime +graphemes +toplevel-tag +blur -assertions ### TERM environment variable xterm-256color ### Compositor Name and Version Hyprland 0.54.3 ### Distribution Arch Linux (Omarchy) ### Terminal multiplexer None ### Shell, TUI, application zshrc ### Server/standalone mode - [x] Standalone - [ ] Server ### Foot config ```ini [main] include=~/.config/omarchy/current/theme/foot.ini term=xterm-256color font=Berkeley Mono:size=10 pad=14x14 initial-window-mode=windowed workers=0 [scrollback] lines=10000 [cursor] style=block blink=no [key-bindings] clipboard-copy=Control+Insert primary-paste=none clipboard-paste=Shift+Insert ``` ### Description of Bug and Steps to Reproduce Launching opencode inside foot reliably crashes foot with SIGABRT. Root cause appears to be an xsnprintf buffer overflow inside foot itself Steps to reproduce: foot -d info -- opencode Foot opens, renders briefly, then aborts (exit 134). ### Relevant logs, stacktraces, etc. info: main.c:427: version: 1.26.1 +pgo +ime +graphemes +toplevel-tag +blur -assertions info: main.c:434: arch: Linux x86_64/64-bit info: main.c:451: locale: en_US.UTF-8 info: config.c:3724: loading configuration from /home/xxx/.config/foot/foot.ini info: config.c:905: imported sub-configuration from /home/xxx/.config/omarchy/current/theme/foot.ini info: fcft.c:358: fcft: 3.3.3 +graphemes +runs +svg(nanosvg) -assertions info: fcft.c:397: fontconfig: 2.17.1, freetype: 2.14.3, harfbuzz: 14.2.0, utf8proc: 2.11.3 (Unicode 17.0.0) info: wayland.c:1838: warn: compositor does not implement the xdg-toplevel-icon protocol info: wayland.c:1852: DP-4: 5120x2880+0x0@60Hz StudioDisplay 26.96" scale=2, DPI=217.90/217.90 info: shm.c:1061: using 8-bit RGB surfaces info: wayland.c:2123: requesting SSD decorations info: terminal.c:856: cell width=16, height=33 info: terminal.c:706: using 0 rendering threads info: wayland.c:1182: using SSD decorations info: terminal.c:1513: gamma-correct blending: disabled err: xsnprintf.c:42: xvsnprintf: No buffer space available Coredump PID: 10688 (foot) Signal: 6 (ABRT) Command Line: foot --working-directory=/home/xxx Stack (stripped — frames #3–#10 in foot, called via libc abort): #0 libc.so.6 + 0x9a29c #1 raise (libc.so.6 + 0x3e7d0) #2 abort (libc.so.6 + 0x25681) #3 /usr/bin/foot + 0x3a684 ← likely xsnprintf.c:42 die path #4 /usr/bin/foot + 0x80cd #5 /usr/bin/foot + 0x3c5f3 #6 /usr/bin/foot + 0x12096 #7 /usr/bin/foot + 0x45be0 #8 libc.so.6 + 0x27741 #9 __libc_start_main #10 /usr/bin/foot + 0x42635
Collaborator
Copy link

Duplicate of #2335 and fixed in 1.27.0.

Duplicate of #2335 and fixed in 1.27.0.
craigbarnes 2026年05月24日 20:39:23 +02:00
Sign in to join this conversation.
No Branch/Tag specified
master
osc-5522
sixel-heap-buffer-overflow
releases/1.27
releases/1.26
releases/1.25
releases/1.24
multi-cursor
releases/1.23
pixman-16f-2
releases/1.22
releases/1.21
releases/1.20
releases/1.19
releases/1.18
releases/1.17
releases/1.16
releases/1.15
releases/1.14
releases/1.13
releases/1.12
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.27.0
1.26.1
1.26.0
1.25.0
1.24.0
1.23.1
1.23.0
1.22.3
1.22.2
1.22.1
1.22.0
1.21.0
1.20.2
1.20.1
1.20.0
1.19.0
1.18.1
1.18.0
1.17.2
1.17.1
1.17.0
1.16.2
1.16.1
1.16.0
1.15.3
1.15.2
1.15.1
1.15.0
1.14.0
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/foot#2357
Reference in a new issue
dnkl/foot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?