~rjarry/aerc#180: 
cd completion crash

I have the following folder: /home/fbence/Documents/oktatás/1_hallgatóim/MóriÁkos. When in 1_hallgatóim I try to :cd M and press tab aerc crashes with the following log:

panic: runtime error: slice bounds out of range [:13] with capacity 12 [recovered]
	panic: runtime error: slice bounds out of range [:13] with capacity 12

goroutine 1 [running]:
git.sr.ht/~rjarry/aerc/log.PanicHandler()
	git.sr.ht/~rjarry/aerc/log/panic-logger.go:51 +0x73e
panic({0xb298a0, 0xc001b66fc0})
	runtime/panic.go:890 +0x262
git.sr.ht/~rjarry/aerc/lib/ui.(*TextInput).Draw(0xc0003861e0, 0xc001476c90)
	git.sr.ht/~rjarry/aerc/lib/ui/textinput.go:120 +0x55a
git.sr.ht/~rjarry/aerc/widgets.(*ExLine).Draw(0x0?, 0x0?)
	git.sr.ht/~rjarry/aerc/widgets/exline.go:74 +0x1d
git.sr.ht/~rjarry/aerc/lib/ui.(*Stack).Draw(0xc0004025a0?, 0x0?)
	git.sr.ht/~rjarry/aerc/lib/ui/stack.go:30 +0x4c
git.sr.ht/~rjarry/aerc/lib/ui.(*Grid).Draw(0xc00014c2d0, 0xc0004025a0)
	git.sr.ht/~rjarry/aerc/lib/ui/grid.go:126 +0x225
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).Draw(0xc0004be000, 0xc0004025a0)
	git.sr.ht/~rjarry/aerc/widgets/aerc.go:193 +0x205
git.sr.ht/~rjarry/aerc/lib/ui.(*UI).Render(0xc00034c080)
	git.sr.ht/~rjarry/aerc/lib/ui/ui.go:105 +0x62
main.main()
	git.sr.ht/~rjarry/aerc/main.go:279 +0xa98

There are two other folder starting with M (both start with Mo).

Status
RESOLVED FIXED
Submitter
~ferdinandyb
Assigned to
No-one
Submitted
1 year, 1 month ago
Updated
1 year, 30 days ago
Labels
bug

~inwit 1 year, 1 month ago

I also get this with some mail addresses when completing the From: or Cc: fields. It's unclear what's the problematic pattern, probably related with accents.

~rjarry REPORTED FIXED 1 year, 30 days ago

Koni Marti referenced this ticket in commit 0fc5ffb.

Register here or Log in to comment, or comment via email.