OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
958 stars 174 forks source link

ppd-conflicts.c: Fix SEGV in 'cupsResolveConflicts()' #897

Closed Drawishe closed 4 months ago

Drawishe commented 4 months ago

A fuzzer found a way to call cupsResolveConflicts() with NULL options structure and not-null num_options. This caused a segmentation fault because non-existent elements of the options structure are accessed in cupsResolveConflicts() function. To avoid this, we need to add a NULL values check for the elements of the structure.

Fixes #896