Turbo87/XCSoar — comment on commit 3223d44afaa893864ac19ebb86f3a0f69582ca21
File: src/Task/TaskFileSeeYou.cpp line 351
By wbu:

I don't think so. Style is an enum, but is set by converting a integer to an enum in ParseStyle(). Without any boundary checks. The integer comes from a user specified file, so a 'broken' .cup file or maybe a new version of the format will cause hard to detect undefined behaviour. The least thing should be something like: default: assert(false)