Commit 63c5b62f authored by Philip Withnall's avatar Philip Withnall 🚫
Browse files

goption: Add a precondition to avoid GOptionEntry list overflow



If the calling code adds more option entries than `G_MAXSIZE` then
there’ll be an integer overflow. This seems vanishingly unlikely (given
that all callers use static option entry lists), but add a precondition
anyway.

Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>

Fixes: #2197
parent bdcf193c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment