Markus Elfring
Markus Elfring
I would like to achieve a bit also in such a software area. The application of C++ exceptions can eventually be improved further. How should a production-quality main() function look...
>I appreciate that you want to improve Pixelitor's code, and this Perl script is a cool trick, Thanks for such a positive feedback. >but in 2021 it's pretty late. I...
>…, it seems that you have experience with C/C++ This view is appropriate. >So if you want to contribute to Pixelitor, then helping with setting up a cross-platform compilation system...
I suggest to avoid [ignorance of return values](https://cwe.mitre.org/data/definitions/252.html "Checking more return values") a bit more. Would you like to detect every error situation as early as possible?
How do you think about to avoid that this software [depends on undefined behaviour](https://www.securecoding.cert.org/confluence/display/c/CC.+Undefined+Behavior#CC.UndefinedBehavior-ub_106 "Avoiding undefined behaviour?")?
* Which “platforms” do you know that show difficulties with the handling of null pointers for the C++ delete operator? * Do you expect that non-null pointers will usually be...
* How do you think about to [use a development tool like “clang-tidy” for corresponding source code adjustments](https://clang.llvm.org/extra/clang-tidy/checks/readability-delete-null-pointer.html "Deletion of unnecessary null pointer checks")? * Would you like to wrap...
```C++ // … printf("delete again [0x%zX]\n", (size_t)ko); delete ko; // … ``` * I suggest to take another look at [answers for the question “What happens in a double delete?”](https://stackoverflow.com/questions/9169774/what-happens-in-a-double-delete...
>Once I added the check: > >```C++ >if(some) > delete some; >some = nullptr; >``` >the issue has gone. I find such information strange. * Do any other factors need...
How do you think about to improve [static source code analysis](https://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis#C.2C_C.2B.2B "Tools for code analysis") also for this software?