Skip to content

Uninitialized value used in ch_init #573

@correctmost

Description

@correctmost

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions