t-8ch / pinentry-bemenu

Pinentry based on bemenu
GNU General Public License v3.0
49 stars 3 forks source link

pinentry: fix wild pointer #19

Closed sinanmohd closed 9 months ago

sinanmohd commented 9 months ago

this commit fixes an unlikely wild pointer, when title, desc, and prompt is not set, make_title will return a wild pointer

t-8ch commented 9 months ago

Thanks! I'd like to fix this a bit differently because the initialized read of r is already UB. And I'd like to keep the structure a bit more uniform.