-
Notifications
You must be signed in to change notification settings - Fork 772
New issue
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
Fix-some-crashes #5144
Fix-some-crashes #5144
Conversation
Febbe
commented
Sep 13, 2023
- fixes Placeholders in "Default save name" #5123 partially
- fixes Crash after clicking on "export as PDF" #5126
- fixes xournalpp#5126 - `view->buffer` from `RenderJob` could be nullptr. when deleted by a different thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some issues I found while testing.
// Todo (cpp20): use <ranges> | ||
for (auto& c : filename) { | ||
if (forbiddenChars.find(c) != std::string::npos) { | ||
c = '_'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we must also check, if a character is greater 127 and or any other invisible character like \n/\t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go into util/PathUtil, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is, that this function parses the input from a user, we will never need it elsewhere. It also does not work on paths itself, only on filenames. Gtk already does something similar, it just ignores the filename, if wrong.
- fixes xournalpp#5123 partially
35fc8ab
to
42b1ae1
Compare