Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninitialized value used in ch_init #573

Open
correctmost opened this issue Sep 25, 2024 · 1 comment
Open

Uninitialized value used in ch_init #573

correctmost opened this issue Sep 25, 2024 · 1 comment

Comments

@correctmost
Copy link

Description

I noticed this issue while testing xfce4-terminal. It doesn't seem to affect functionality, but I thought I'd report it anyhow.

Steps to reproduce

  1. cat | valgrind --track-origins=yes ./less
  2. Press Ctrl + c
  3. Press q

Valgrind trace

Conditional jump or move depends on uninitialised value(s)
   at 0x112A98: ch_init (ch.c:858)
   by 0x11C0BB: edit_ifile (edit.c:611)
   by 0x11BA9A: edit (edit.c:399)
   by 0x11C705: edit_stdin (edit.c:903)
   by 0x11C413: edit_first (edit.c:740)
   by 0x10EC21: main (main.c:441)
 Uninitialised value was created by a stack allocation
   at 0x11BB15: edit_ifile (edit.c:433)

Version info

  • Tested with ec23abd on Arch Linux
gwsw added a commit that referenced this issue Sep 25, 2024
@gwsw
Copy link
Owner

gwsw commented Sep 26, 2024

Fixed in 715297e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants