Virtual-Assistant
Virtual-Assistant copied to clipboard
Some code safety insights
Thanks for your contribution to opensource! There's some code safety improvements possible, for example:
scanfreturn value not taken into account. Possibly here(for example) and in other places.- Unfreed memory and unitialized memory access. Possibly here(for example) and in other places. Please check
valgrindtool to mitigate this kind of safety flaws. - Excessive use of
systemcalls without user input validation. Possibly here(for example) and in other places. Please see how it may be abused here.
@B1Z0N Thanks for pointing those out. Feel free to open up a PR for the same. would be happy to have it.