Skip to content

Uninitialized value used in back function #660

@correctmost

Description

@correctmost

Steps to reproduce

  1. touch empty.txt
  2. valgrind --track-origins=yes ./less empty.txt 2>valgrind.log
  3. In less, press alt + k

Valgrind trace

Conditional jump or move depends on uninitialised value(s)
   at 0x40187F4: back (forwback.c:388)
   by 0x4018A34: backward (forwback.c:494)
   by 0x4011C0B: commands (command.c:1598)
   by 0x4006E29: main (main.c:503)
 Uninitialised value was created by a stack allocation
   at 0x4018765: back (forwback.c:374)

Version info

342a086 compiled 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