You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: runtime error: slice bounds out of range [808:773]
goroutine 114 [running]:
github.com/Shopify/toxiproxy/v2/toxics.(*SlicerToxic).Pipe(0x1400020c0f0, 0x1400021e480)
github.com/Shopify/toxiproxy/v2/toxics/slicer.go:65 +0x320
github.com/Shopify/toxiproxy/v2/toxics.(*ToxicStub).Run(0x1400021e480, 0x14000210d20)
github.com/Shopify/toxiproxy/v2/toxics/toxic.go:86 +0xb8
created by github.com/Shopify/toxiproxy/v2.(*ToxicLink).Start in goroutine 58
github.com/Shopify/toxiproxy/v2/link.go:109 +0x2c8
This panic happens when using the
slicer
toxic:The bug is here:
toxiproxy/toxics/slicer.go
Lines 42 to 44 in 7abcb6f
rand.Intn
can return a number in[0, SizeVariation*2)
, so it can be less thanSizeVariation
, resulting a negative RHS and amid
less thanstart
The text was updated successfully, but these errors were encountered: