unknown
Why is gets() unsafe
PKA 👾
Why is gets() unsafe
If you know how to work with it, you'll have no trouble navigating the waters. It's just that there are no stringent line length checks or other constraints.
A. R.
Why is gets() unsafe
Not inherently unsafe itself per se, but can be abused and cause buffer overflows and such if it's handled incorrectly or not checked properly So basically no native/builtin compiler runtime checks = dangerous, you'll have to implement them yourself as mentioned
Vlad
Then on overflow it would just corrupt itself
Vlad
There's still limited virtual address space that you assign to it. But you can be a dick and assign a lot
Vlad
Why is gets() unsafe
Cause any 11 y.o. l33t h4x0r can hack your app through it in 5 minutes
PKA 👾
Cause any 11 y.o. l33t h4x0r can hack your app through it in 5 minutes
Let’s not forget about the leaks of all your passwords and bank card details
Vlad
If you're in userspace
Vlad
It can call whatever it wants, but it would still be parent process permissions
PKA 👾
It would not get root access through gets abuse
Bro doesn't understand jokes 💀
Vlad
Bro doesn't understand jokes 💀
Nibba your "joke" was too dry
Vlad
Better luck next time
PKA 👾
Nibba your "joke" was too dry
Sorry, I’ll add some water next time. Maybe then it’ll be as refreshing as your originality
A. R.
It is inherently unsafe, there is no way to check if bounds would be overrun reliably
Actually you're right, that would make the function itself inherently unsafe. My bad, you're right.
A. R.
Then on overflow it would just corrupt itself
Or underrun it and cause data corruption and buffer poisoning and whatnot
A. R.
Short version: don't use gets() unless you absolutely have no other choice (i don't see such a scenario, but let's just assume)
Ибраги́м
Okay, do a git blame on the iso spec, I am getting the sharks ready
So that it can be replaced with something worse. Thanks
Ludovic 'Archivist'
So that it can be replaced with something worse. Thanks
Come on, I need a reason to feed the sharks, they will be sad and dead otherwise
Simple Sorcerer
Is there a way to create an object of a class without initializing it? And also not to use dynamic memory allocation Actually I need to create an array of objects. And they should copy the object and not create or call anything, only be used as a container class A { ... }; int main() { A a1; // it is init (call A()) A a; // how not calling A() ? // after: a = A(); }
FriedRice
⚽️
Blue
For free?
Juuzou
Does anyone has such weird c++ project ideas that when someone see it, they say it can't be ai?
Ujjawal
Yes,... but I need to hide the default constructor from the user...
Afaik if its present in the class definition then it will gets called implicitly and you can't stop it
Simple Sorcerer
Amale
I need someone to help me (machine learning) Pleaaaase help❤️
Rose
I need someone to help me (machine learning) Pleaaaase help❤️
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Dipanjan
I need someone to help me (machine learning) Pleaaaase help❤️
I have fairly good understanding of ML, what kind of help do you need?
Blue
Hey guys.. how to check if my resume is ATS friendly?
Blue
My resume is getting rejected everywhere
Daksh Dilipbhai
Hey guys
Daksh Dilipbhai
Muje message Karo gyes
Ludovic 'Archivist'
Muje message Karo gyes
/warn English only
Rose
Muje message Karo gyes
User Daksh Dilipbhai has 1/2 warnings; be careful! Reason: English only
Reality
Does anyone have PDF of C ++ Full Course
Alan Turing
Does anyone have PDF of C ++ Full Course
Why pdf? So many great courses are avalibe in you tube !
Dipanjan
The Cherno and Cppcon are awesome
Kenny
The Cherno and Cppcon are awesome
The Cherno best teacher
A. R.
The Cherno and Cppcon are awesome
Add Mike Shah to the list
MAAN💤
Any body have data communication and networking book pdf??
OPTIMUS
Sorry dor asking this here does anyone have notes on mysql authentication and authorization?
Mr
Any body have data communication and networking book pdf?
Sabir
Hi friends
klimi
Hi friends
nohello.com
Rose
Heya :) PM me if you have any questions on how to use me!
ㅤ Question!
Hi guys
ㅤ Question!
I need help with C
Prathik
C program notes please
Juuzou
Does anyone here know how to setup c++ and imgui ?
Vlad
Does anyone here know how to setup c++ and imgui ?
Just clone the imgui repo and use a sample from there for your graphics backend of choice
Anonymous
yes, the imgui samples are quite easy to compile.
Anonymous
dear friends, what's the most important feature of modern c++ in your opinion? I've studied something like TMP, but i can barely use them in daily programming then i forgot most of them...
Pavel
dear friends, what's the most important feature of modern c++ in your opinion? I've studied something like TMP, but i can barely use them in daily programming then i forgot most of them...
I assume you don't mean things like the ability to declare a variable, or the ability to compile on/to any platform, but something that makes C++ different from other languages like C and Java, and then I would say RAII
vippp
Расисты
vippp
Почему вы удаляете мое сообщение
ㅤ Question!
Need help plesssssss
ㅤ Question!
TeXtmeeeee
Thomas
sybau
vippp
Томас
vippp
Ну ругайтесь
vippp
english only..
Андрей
ㅤ Question!
english only..
I want your help
ㅤ Question!
Andrey
Андрей
what you want