]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
prop: prop_sbuf / prop_ptr cleanups
authorJaroslav Kysela <perex@perex.cz>
Fri, 29 Sep 2017 07:31:52 +0000 (09:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 29 Sep 2017 07:31:58 +0000 (09:31 +0200)
commitffb2932c5c8ab7cc3d5fcc7a28960194f4fc938e
treea3b3ad008eb6508fdeabe731dd7bb3ad16bba6c6
parente16f5ecad04b00cf328564648bd7a6dc9847c8fe
prop: prop_sbuf / prop_ptr cleanups

The prop get string callbacks should use static buffers. This
patch is trying to fix the problematic parts (mostly in dvr_db.c)
and also introduces prop_ptr to not allocate static pointer
in each string get callback.

The problems in dvb_db.c were serious, so tvh could crash or
invalid data are written to the config files.

Issue: #4636
16 files changed:
src/access.c
src/bouquet.c
src/channels.c
src/descrambler/caclient.c
src/descrambler/cccam.c
src/descrambler/constcw.c
src/descrambler/cwc.c
src/dvr/dvr_autorec.c
src/dvr/dvr_db.c
src/dvr/dvr_timerec.c
src/input/mpegts/linuxdvb/linuxdvb_frontend.c
src/input/mpegts/linuxdvb/linuxdvb_satconf.c
src/input/mpegts/mpegts_mux_dvb.c
src/input/mpegts/mpegts_network_dvb.c
src/prop.c
src/prop.h