Closed WanWizard closed 5 years ago
Strictly it's no a buffer overflow, it's a string truncation ;-) No buffer overflows in my code!
The better approach might be to keep the buffer length (or even decrease it) and skip the line altogether because the lines that tend to be long are not interesting to us.
Semantics. ;-)
Not sure how you want to approach detecting such lines, so I'll leave that up to you.
Working on it right now!
Buffer overflow = bug = security risk Buffer truncation = unavoidable limitation = no security risk
So rather relevant imho.
Ok. This one can be closed then.
Fixed otherwise. Changed fixed buffer size of 1024 to variable buffers of 2 * 64 bytes (which is enough for us). In the process, get rid of fgets with it's not always preferred behaviour.
commit dd431f92e421b7096c2fa77657e35451edf8119a (HEAD -> master, origin/master, origin/HEAD) Author: Erik Slagter erik@openpli.org Date: 4 minutes ago
Some enigma2 config keys, like "config.misc.pluginbrowser.plugin_order" or "config.movielist.videodirs", can easily exceed 1024 characters, causing a "user.warn streamproxy: line does not contain delimiter" parse error in the log.