mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
add 32-bit tests; return errors in case of string-to-int overflows (#276)
This commit is contained in:
@@ -47,7 +47,7 @@ func (h *Session) Unmarshal(v base.HeaderValue) error {
|
||||
|
||||
for k, v := range kvs {
|
||||
if k == "timeout" {
|
||||
iv, err := strconv.ParseUint(v, 10, 64)
|
||||
iv, err := strconv.ParseUint(v, 10, 32)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user