+ 1

Do dangling pointers cause memory leakage?

24th May 2018, 10:44 AM
Zuke
Zuke - avatar
10 Answers
+ 1
They can,they can cause all sorts of nasty stuff like double frees
24th May 2018, 10:48 AM
Max
Max - avatar
+ 3
Welp, back to Google!
24th May 2018, 10:52 AM
Zuke
Zuke - avatar
+ 2
Hmmm... Is there some method to find out if a variable is being pointed to or not?
24th May 2018, 10:50 AM
Zuke
Zuke - avatar
+ 2
Exactly! But something tells me Assembly tutorials can't easily be found online...
24th May 2018, 4:47 PM
Zuke
Zuke - avatar
+ 1
Yes, it's his birth right to leak memory...
24th May 2018, 10:49 AM
Sachin Artani
Sachin Artani - avatar
+ 1
Nope but I recommend using smart pointers instead of raw pointers. That avoids a lot of problems. Look into modern c++ coding style. You seem really interested in the really lowlevel stuff, you could try learning assembly and doing some crackmes and learning Reverse Engineering, that pays really well and you will understand what the computer is doing and how your programs are interacting with the operating system on the lowest level
24th May 2018, 10:51 AM
Max
Max - avatar
+ 1
Exactly, I love those! But something tells me Assembly tutorials can't easily be found online...
24th May 2018, 4:48 PM
Zuke
Zuke - avatar
+ 1
Wow all the websites I used to learn this stuff are gone, that’s really sad. You could try this http://www.cs.virginia.edu/~evans/cs216/guides/x86.html Was the only thing that I found that seemed ok. Just remember that writing large assembly programs is pretty useless, most people use assembly just for reverse engineering and inline in c++, so dont waste to much time on writing programs in assembly. You could always write short c programs and disassemble them to see what’s going on instead(use ida pro). After that just browse the reverse engineering subreddit and do the Lena tutorials and the legend of random tutorials you can find them and many more on a site called tuts4you ( just google it) after that read this book https://beginners.re It will teach you two more assembly languages for different processors(the ones in you mobile phone) the tutorials are for software cracking but softwarecracking is just Reverse Engineering Applied for shady things and reading them(don’t do them on the software that would be illegal) will help you navigate Large programs( they use a tool called ollydbg that’s no longer relevant use x64dbg instead and check out the available plugins).they are pretty old but Lots of reverse engineers use so called crackmes to practice.on the way you should also pick up x86_64 assembly but it’s an easy extension of x86 assembly
24th May 2018, 5:20 PM
Max
Max - avatar
+ 1
Wow, thank you so much!!
24th May 2018, 5:48 PM
Zuke
Zuke - avatar
0
Additional quick tip: in the reverse engineering subreddit sort by all time and popular to find the best resources, don’t rely on trending, it’s not that active
24th May 2018, 5:50 PM
Max
Max - avatar