goostengine / goost

A general-purpose, extensible and customizable C++ extension for Godot Engine.
https://goostengine.github.io/
MIT License
481 stars 18 forks source link

Fix `CommandLineParser` crash with `find_option()` #125

Closed Xrayez closed 3 years ago

Xrayez commented 3 years ago

It was possible to set existing option to null, which could cause find_option() to crash upon null value.

This patch also makes sure that options with the same name are not added.

Bug found via fuzzer 🐛: https://github.com/goostengine/goost-fuzzer/runs/3326725665.