1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-03 22:52:30 +02:00
opentelemetry-go/baggage
Fabio Bozzo 478f85bb15
fix(baggage): validate chars panic with 0x80 (#5494)
The validation rule for baggage key/values chars has a N+1 problem with
the unicode value: `0x80`.

For instance, `baggage.NewMemberRaw` could be called with a string value
including the rune `128` and return no error.

Then `baggage.New` would panic on `validateValueChar`:
```
=== RUN   TestValidateValueChar
--- FAIL: TestValidateValueChar (0.00s)
panic: runtime error: index out of range [128] with length 128 [recovered]
	panic: runtime error: index out of range [128] with length 128
```

---------

Co-authored-by: Sam Xie <sam@samxie.me>
2024-06-17 09:03:57 -07:00
..
baggage_test.go fix(baggage): validate chars panic with 0x80 (#5494) 2024-06-17 09:03:57 -07:00
baggage.go fix(baggage): validate chars panic with 0x80 (#5494) 2024-06-17 09:03:57 -07:00
context_test.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
context.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
doc.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
README.md Add READMEs to every package (#5103) 2024-03-26 20:13:54 +01:00

Baggage

PkgGoDev