We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is an issue in tinydir_file_open when compiled with MSVC.
At the beginning of the function, there is following declaration:
_tinydir_char_t drive_buf[_TINYDIR_DRIVE_MAX];
_TINYDIR_DRIVE_MAX is defined as 3
Later on, there is following line:
_tinydir_strcat(drive_buf, dir_name_buf);
which always overflows the buffer.
Quick solution is to define drive_buf as
_tinydir_char_t drive_buf[_TINYDIR_PATH_MAX];
The text was updated successfully, but these errors were encountered:
47d5a79
good catch!
Sorry, something went wrong.
No branches or pull requests
There is an issue in tinydir_file_open when compiled with MSVC.
At the beginning of the function, there is following declaration:
_TINYDIR_DRIVE_MAX is defined as 3
Later on, there is following line:
which always overflows the buffer.
Quick solution is to define drive_buf as
The text was updated successfully, but these errors were encountered: