mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 18:47:37 -07:00
Don't read unlimited data from files
It now guards against reading infinite files such as `/dev/zero`. And most readings are bound with a (lax) limit. As a side effect, more checking are done when reading a file and overall the reading procedure is more robust. PR #19095.
This commit is contained in:
parent
81bc910d68
commit
79ca2e145f
24 changed files with 370 additions and 199 deletions
|
@ -17,6 +17,7 @@ set(testFiles
|
|||
testutilscompare.cpp
|
||||
testutilsbytearray.cpp
|
||||
testutilsgzip.cpp
|
||||
testutilsio.cpp
|
||||
testutilsstring.cpp
|
||||
testutilsversion.cpp
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue