Re: [PATCH 03/12] dump: Assert cpu_get_note_size() can't fail

2023-02-07 Thread Juan Quintela
Markus Armbruster wrote: > The only way cpu_get_note_size() can return a negative value is > integer overflow in the non-stub versions, which is a programming > error. The stub version is not actually reachable, because the > cpu_get_dump_info() stub will fail first. Use assert(). This gets > r

[PATCH 03/12] dump: Assert cpu_get_note_size() can't fail

2023-02-06 Thread Markus Armbruster
The only way cpu_get_note_size() can return a negative value is integer overflow in the non-stub versions, which is a programming error. The stub version is not actually reachable, because the cpu_get_dump_info() stub will fail first. Use assert(). This gets rid of another use of QERR_UNSUPPORTE