Skip to content

Commit

Permalink
integer-overflow - hint
Browse files Browse the repository at this point in the history
  • Loading branch information
akemrir committed Oct 5, 2024
1 parent d711611 commit 5a393f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ func NewInotify(ctx context.Context) (*Inotify, error) {
offset = nameEnd
}

// how to address?
// verr := ValidateVsMaximumAllowedUint32Size(int(event.Wd))
// if verr != nil {
// return nil, verr
// }

req := getPathRequest{wd: uint32(event.Wd), result: make(chan string)}
var watchName string

Expand Down

0 comments on commit 5a393f6

Please sign in to comment.