Reputation
2,435
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
1 15 32
Impact
~93k people reached

  • 0 posts edited
  • 0 helpful flags
  • 2,024 votes cast
Jun
24
comment How safe is it to compile a piece of source code from a random stranger?
@DocBrown LOL. You forgot to add "... and can get things done".
Jun
24
comment How safe is it to compile a piece of source code from a random stranger?
@jwenting Whatever happens to the compiler which makes it pwn my machine counts. Maybe it executes the compilation result, maybe it corrupts some data - whatever.
Jun
24
awarded  Good Question
Jun
23
awarded  Notable Question
Jun
23
awarded  Popular Question
Jun
23
awarded  Nice Question
Jun
23
comment How safe is it to compile a piece of source code from a random stranger?
@logc We're an ISV, not a security auditing company, so being able to pwn anything is not the top requirement for us.
Jun
23
comment How safe is it to compile a piece of source code from a random stranger?
@Mandrill LOL, nope, I nitpick to just about anything and then I check the code with Cppcheck and also think of compiling it and looking at warnings if that's easy to do.
Jun
23
comment How safe is it to compile a piece of source code from a random stranger?
Any explanation of why compiling is totally safe? One can pwn a server by sending a cleverly crafted message - why can't he pwn a compiler by giving it a cleverly crafted input?
Jun
23
revised How safe is it to compile a piece of source code from a random stranger?
added 39 characters in body; edited tags; edited title
Jun
23
comment How safe is it to compile a piece of source code from a random stranger?
@RemcoGerlich I don't want to run it either but I want to compile it to see if the compiler emits any warnings.
Jun
23
comment How safe is it to compile a piece of source code from a random stranger?
@RemcoGerlich I'm not a security expert and clearly I would not pay much attention to some hardcoded array initializer contents.
Jun
23
asked How safe is it to compile a piece of source code from a random stranger?
Mar
31
comment Does path coverage guarantee finding all bugs?
It would be fair to change your code comments so that they say "path coverage" because that's what you're talking about.
Mar
17
awarded  Famous Question
Mar
4
comment How does branch prediction work, if you still have to check for the conditions?
This explanation is neat.
Feb
21
awarded  Nice Question
Nov
28
comment Starting Execution of Java Program
@justin: There're no member functions in C and there're no non-member functions in Java. There's no other choice in C - non-member functions are the only choice. There is some choice in Java (all functions are member functions but they can be either static or non-static). Non-static member functions could have been used as entry points - however the design choice was made in favor of static member functions and I don't know why it was done this way but I guess it is because it is simpler. Also please note that static for C functions and static for Java member functions are totally different.
Nov
28
comment Starting Execution of Java Program
@justin: C runtime invokes a non-member function main() and Java runtime invokes a static member function main() of some class that happens to contain it.
Nov
28
comment Starting Execution of Java Program
@justin: Yes, it uses main() non-member function the same way as C does.