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
Hi, found this panic when trying to parse an empty file. The error seems to be in github.com/jhump/protoreflect/desc/protoparse/parser.go:559 where lx.err is nil so no error is returned but lx.res is also nil so a nil pointer dereference occurs later when this is accessed.
To reproduce just try to parse any empty file or use the following self-contained example:
Hi, found this panic when trying to parse an empty file. The error seems to be in github.com/jhump/protoreflect/desc/protoparse/parser.go:559 where lx.err is nil so no error is returned but lx.res is also nil so a nil pointer dereference occurs later when this is accessed.
To reproduce just try to parse any empty file or use the following self-contained example:
Stack trace:
(I also created a simple fuzzing harness for both ParseFiles and ParseFilesButDoNotLink but go-fuzz didn't find any other panics so far)
The text was updated successfully, but these errors were encountered: