C++ Logo

std-discussion

Advanced search

Re: C++ language has a big security hole.

From: Amit <amitchoudhary0523_at_[hidden]>
Date: Mon, 17 Feb 2025 17:59:28 +0530
>
> If you are not a hacker then why do you claim this is even useful for
> hackers?
>


So, you are saying that since I am not a hacker so I should not even
discuss hacking even if I see something suspicios?

Doesn't look like the right approach. Stopping questions actually don't
help much.


Besides, even if I want to have "secure" `private:` how would you like
> to archive it?
>


If I were to design an object oriented language then I would have designed
it like Java. At least, I wouldn't have provided any pointers.


> besides, if I'm "hacker" and want to corrupt my own code I can write
> code like `*(int*)nullptr = 1`
> or `system("format C:/");`, I do not need to abuse `private` to do this.
>


I didn't talk about hacking my own code.

Regards,
Amit

Received on 2025-02-17 12:29:42