r/badcode •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

44 comments sorted by

View all comments

Show parent comment

2

u/activeXdiamond May 13 '20

Why does windows think it's a trojan? The ptr check?

6

u/kiwitims May 13 '20

I figured it out making my morning coffee after posting. Missing a return statement in main(), I was compiling with a C++ rather than a C compiler so it actually does have an arbitrary code execution vulnerability.

Unintentionally really bad code...