mirror of
https://github.com/apple/swift-protobuf.git
synced 2026-06-16 10:24:34 +00:00
In looking at the code coverage on oss-fuzz, I realized the encoding support never goes down paths related to options being not the default, so go ahead and allow the existing options extraction to set those also, so we're running everything possible to help look for bugs. All but one of the options defaulted to "false", so since the fuzz options parsing was ensuring the extra bits were zero, it is safe to just add the option. The one that wasn't zero, we add a new "inverted" bool so all saved cases remain valid. This also gave us the change to control "partial" on binary decoding, so wire that up also. Lastly, while at it, increase the options logging so it is a little more complete.