Commit e855f62
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 #17121 parent 366e562 commit e855f62
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
1483 | | - | |
| 1483 | + | |
1484 | 1484 | | |
1485 | 1485 | | |
1486 | 1486 | | |
| |||
0 commit comments