[GH-ISSUE #611] Client crashes from last.fm API key input box #358

Open
opened 2026-02-28 14:32:26 +03:00 by kerem · 1 comment
Owner

Originally created by @shenso on GitHub (May 15, 2025).
Original GitHub issue: https://github.com/jpochyla/psst/issues/611

Describe the bug
The program crashes when I paste a last.fm API key into the corresponding input box, and then move my cursor within that box. Pasted text is also not displayed. I could see that being intentional for the secret key, but it's the case for both

To Reproduce
Steps to reproduce the behavior.

  1. Paste a sufficiently large amount of text into the API key input box: issues?q=is%3Aissue state%3Aopen lastfm
  2. Press the left key on your keyboard while the box is selected.

Expected behavior
A clear and concise description of what you expected to happen.

The program should probably display the text, and move/change the text displayed when you move the cursor.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • OS: Debian Testing
  • Version: Linux 6.12.22

Additional context
Add any other context about the problem here.

Output to /dev/stderr:

thread 'main' panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-segmentation-1.12.0/src/grapheme.rs:787:29:
byte index 32 is out of bounds of ``
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at library/core/src/panicking.rs:218:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x5559dc67c57f - <unknown>
   1:     0x5559dc1d9c43 - <unknown>
   2:     0x5559dc67bc72 - <unknown>
   3:     0x5559dc67c3e3 - <unknown>
   4:     0x5559dc67ba3c - <unknown>
   5:     0x5559dc6b5565 - <unknown>
   6:     0x5559dc6b54f9 - <unknown>
   7:     0x5559dc6b5adc - <unknown>
   8:     0x5559db9f864c - <unknown>
   9:     0x5559db9f86b5 - <unknown>
  10:     0x5559db9f8663 - <unknown>
  11:     0x5559dc21e54c - <unknown>
  12:     0x7fd69e497c6a - <unknown>
  13:     0x7fd69efaaa10 - g_closure_invoke
  14:     0x7fd69efbee03 - <unknown>
  15:     0x7fd69efc00f2 - <unknown>
  16:     0x7fd69efc6666 - g_signal_emit_valist
  17:     0x7fd69efc6723 - g_signal_emit
  18:     0x7fd69e7558fc - <unknown>
  19:     0x7fd69e778973 - gtk_window_propagate_key_event
  20:     0x7fd69e77d23b - <unknown>
  21:     0x7fd69e497d7a - <unknown>
  22:     0x7fd69efaac41 - <unknown>
  23:     0x7fd69efbfbf3 - <unknown>
  24:     0x7fd69efc6666 - g_signal_emit_valist
  25:     0x7fd69efc6723 - g_signal_emit
  26:     0x7fd69e7558fc - <unknown>
  27:     0x7fd69e60622f - <unknown>
  28:     0x7fd69e607f56 - gtk_main_do_event
  29:     0x7fd69e3305c9 - <unknown>
  30:     0x7fd69e387226 - <unknown>
  31:     0x7fd69ee95305 - <unknown>
  32:     0x7fd69ee97537 - <unknown>
  33:     0x7fd69ee97ca0 - g_main_context_iteration
  34:     0x7fd69e1e2edd - g_application_run
  35:     0x5559dc153f63 - <unknown>
  36:     0x5559dbb8ba73 - <unknown>
  37:     0x5559dc17e937 - <unknown>
  38:     0x7fd69de3bca8 - <unknown>
  39:     0x7fd69de3bd65 - __libc_start_main
  40:     0x5559dba1bd6e - <unknown>
  41:                0x0 - <unknown>
thread caused non-unwinding panic. aborting.
zsh: IOT instruction  psst-gui
Originally created by @shenso on GitHub (May 15, 2025). Original GitHub issue: https://github.com/jpochyla/psst/issues/611 **Describe the bug** The program crashes when I paste a last.fm API key into the corresponding input box, and then move my cursor within that box. Pasted text is also not displayed. I could see that being intentional for the secret key, but it's the case for both **To Reproduce** Steps to reproduce the behavior. 1. Paste a sufficiently large amount of text into the API key input box: `issues?q=is%3Aissue state%3Aopen lastfm` 2. Press the left key on your keyboard while the box is selected. **Expected behavior** A clear and concise description of what you expected to happen. The program should probably display the text, and move/change the text displayed when you move the cursor. **Screenshots** If applicable, add screenshots to help explain your problem. **Environment** - OS: Debian Testing - Version: Linux 6.12.22 **Additional context** Add any other context about the problem here. Output to /dev/stderr: ``` thread 'main' panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-segmentation-1.12.0/src/grapheme.rs:787:29: byte index 32 is out of bounds of `` note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread 'main' panicked at library/core/src/panicking.rs:218:5: panic in a function that cannot unwind stack backtrace: 0: 0x5559dc67c57f - <unknown> 1: 0x5559dc1d9c43 - <unknown> 2: 0x5559dc67bc72 - <unknown> 3: 0x5559dc67c3e3 - <unknown> 4: 0x5559dc67ba3c - <unknown> 5: 0x5559dc6b5565 - <unknown> 6: 0x5559dc6b54f9 - <unknown> 7: 0x5559dc6b5adc - <unknown> 8: 0x5559db9f864c - <unknown> 9: 0x5559db9f86b5 - <unknown> 10: 0x5559db9f8663 - <unknown> 11: 0x5559dc21e54c - <unknown> 12: 0x7fd69e497c6a - <unknown> 13: 0x7fd69efaaa10 - g_closure_invoke 14: 0x7fd69efbee03 - <unknown> 15: 0x7fd69efc00f2 - <unknown> 16: 0x7fd69efc6666 - g_signal_emit_valist 17: 0x7fd69efc6723 - g_signal_emit 18: 0x7fd69e7558fc - <unknown> 19: 0x7fd69e778973 - gtk_window_propagate_key_event 20: 0x7fd69e77d23b - <unknown> 21: 0x7fd69e497d7a - <unknown> 22: 0x7fd69efaac41 - <unknown> 23: 0x7fd69efbfbf3 - <unknown> 24: 0x7fd69efc6666 - g_signal_emit_valist 25: 0x7fd69efc6723 - g_signal_emit 26: 0x7fd69e7558fc - <unknown> 27: 0x7fd69e60622f - <unknown> 28: 0x7fd69e607f56 - gtk_main_do_event 29: 0x7fd69e3305c9 - <unknown> 30: 0x7fd69e387226 - <unknown> 31: 0x7fd69ee95305 - <unknown> 32: 0x7fd69ee97537 - <unknown> 33: 0x7fd69ee97ca0 - g_main_context_iteration 34: 0x7fd69e1e2edd - g_application_run 35: 0x5559dc153f63 - <unknown> 36: 0x5559dbb8ba73 - <unknown> 37: 0x5559dc17e937 - <unknown> 38: 0x7fd69de3bca8 - <unknown> 39: 0x7fd69de3bd65 - __libc_start_main 40: 0x5559dba1bd6e - <unknown> 41: 0x0 - <unknown> thread caused non-unwinding panic. aborting. zsh: IOT instruction psst-gui ```
Author
Owner

@SO9010 commented on GitHub (May 18, 2025):

@marcfusch could you tackle this as you add this feature? I this could be an easy fix, I think we just need to limit the amount of text parsed through.

<!-- gh-comment-id:2889011959 --> @SO9010 commented on GitHub (May 18, 2025): @marcfusch could you tackle this as you add this feature? I this could be an easy fix, I think we just need to limit the amount of text parsed through.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/psst#358
No description provided.