Skip to content
Commit 99d06e49 authored by Cosimo Cecchi's avatar Cosimo Cecchi
Browse files

afc: null-terminate choices string array

Fixes extra buttons appearing in the dialog.

The fact that we pass the array length doesn't guarantee that the
function we are calling will actually work fine with a non
null-terminated array; in fact it ultimately gets passed to the
autogenerated GDBus code, which expects it to be null-terminated,
causing memory access out of the array bounds, and into the
content-types string array.

https://bugzilla.gnome.org/show_bug.cgi?id=682496
parent 3babe9b7
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