orhun/flawz

Program panicked while scrolling CVE list with mouse

DannyJJK opened this issue · 4 comments

Describe the bug

thread 'main' panicked at /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/ratatui-0.26.2/src/text/line.rs:477:59:
byte index 82 is not a char boundary; it is inside '\u{a0}' (bytes 81..83) of The vCenter Server contains an authenticated remote code execution vulnerability. A
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

To reproduce

I believe this is happening due to a specific CVE (hard to tell which one because it crashes before you can see it). If you search for The vCenter Server and then keep scrolling down, it should eventually panic.

Expected behavior

No crash

Software information

  • Operating system: macOS Sonoma 14.5 (23F79)
  • Rust version: I don't have Rust installed, this was installed from Homebrew
  • Project version: flawz 0.1.1

Hey, thanks for reporting!

I am unable to reproduce, can you share more information? More specifically, terminal, terminal size and font might be helpful.

Also, did you face the same error while scrolling without mouse?

Terminal: Version 0.13.2 (1)
Font: PragmataPro
Font size: 16 (not sure what measurement this is, I think it's pixels)

I get the same error without the mouse as well. The easiest way to reproduce the error is to load flawz so that CVE-1999-0001 is the first displayed CVE. Then hold arrow up to keep going from newest to oldest and eventually you get to the CVE that causes it to panic

This appears to be fixed in v0.2.1 🥳 I'll close this

Glad to hear that!