I noticed this in coverity. I couldn't find any actual script using SF_DISPLAY, so the impact probably isn't very big. Because the enums start at 0, the size of the array should be at least one more than the value of the last enum, which was not the case here. Increase the size of the array by 1, so that accessing SF_DISPLAY, which is the enum with the highest value, is valid. |
||
|---|---|---|
| .. | ||
| console | ||
| interpreter | ||
| libscriptfu | ||
| scripts | ||
| server | ||
| meson.build | ||
| script-fu-eval.c | ||
| script-fu-eval.h | ||
| script-fu-text-console.c | ||
| script-fu-text-console.h | ||
| script-fu.c | ||