]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
Use safer htsmsg_add_str2 when copying de->de_directory
authorBrett T. Warden <brett.warden@gmail.com>
Mon, 17 Jun 2024 20:56:11 +0000 (13:56 -0700)
committerFlole <Flole998@users.noreply.github.com>
Tue, 18 Jun 2024 16:50:09 +0000 (18:50 +0200)
commite855f62e6697cf756ad2eed2ed03b8d06ba2019b
treef5116dd98e5beed48462cfa08ae7e39a0375a449
parent366e5629057e39de68932a0a0613a8af14076e31
Use safer htsmsg_add_str2 when copying de->de_directory

de->de_directory may be null. htsmsg_add_str passes str unchecked to underlying strlen function. __strlen_avx2 will segfault if str is null.

htsmsg_add_str2 checks the value of args before passing them to htsmsg_add_str, which should prevent this.

Fixes #1712
src/dvr/dvr_db.c