Skip to content

Commit 6af8ab6

Browse files
authored
Merge pull request #43 from lrowe/revert-empty-path-check-removal
Necessary to disallow read for empty path on debian bookworm
2 parents 8e9d249 + e12fcea commit 6af8ab6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/tinykvm/linux/fds.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ namespace tinykvm
478478

479479
bool FileDescriptors::is_readable_path(std::string& modifiable_path) const noexcept
480480
{
481+
if (modifiable_path.empty())
482+
return false;
483+
481484
if (!m_open_readable)
482485
return false;
483486
if (m_open_readable(modifiable_path)) {

0 commit comments

Comments
 (0)