From 5a393f6ef81ae51ea719af03a7bb43348defa0c5 Mon Sep 17 00:00:00 2001 From: Karol Jakusz-Gostomski Date: Sat, 5 Oct 2024 18:59:57 +0200 Subject: [PATCH] integer-overflow - hint --- inotify.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inotify.go b/inotify.go index 55ad01f..1067450 100644 --- a/inotify.go +++ b/inotify.go @@ -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