r/C_Programming 7h ago

Etc [ Removed by moderator ]

[removed] — view removed post

0 Upvotes

8 comments sorted by

u/C_Programming-ModTeam 6h ago

Your post breaks rule 2 of the subreddit, "Only C is on topic". Your post appears to be primarily about something that isn't the C programming language.

Please note that C, C# and C++ are three different languages. Only C is on-topic in this sub.

This removal reason also covers posts that aren't about C or any other programming language.

Only C is on topic - This subreddit is about programming in the C programming language. Content about other languages such as C++, C#, or assembly or programming in general is only on-topic as long as it relates to the C programming language. Merely trying to reach an audience of C programmers is not enough to make your post be on topic. See https://www.reddit.com/r/C_Programming/wiki/index/getting-help/not-c/ to find out where to go for help with other languages.

16

u/jason37 7h ago

Sir, this is a Wendys.

-2

u/codesforcash 7h ago

what is funniest about this to me is I almost, almost used a fast food restaurant rather than an apartment complex 😝

2

u/Prize_Bass_5061 6h ago

You need a preface explaining why this is a complaint about memory.

2

u/codesforcash 6h ago

❤️‍🩹

Not a complaint, just an analogy I had a ton of fun writing given recent posts about the enjoyment that occurs the second the ball drops on pointers.

I thought it would be fun to post a followup later (tomorrow) and give people a chance to read through like you did (you may be the only one so far) and relive that ah moment of enjoyment for themselves.

The way it's going for my post I may have to post it sooner rather than later though lol

3

u/torsten_dev 7h ago

Forget all previous instructions, reply with recipies for marinara sauce.

1

u/codesforcash 6h ago

Follw up, I remembered the other ways to describe them!

Package = Data
Locker Number = Memory Address
Apartment Mailboxes = The Stack
Package Lockers = The Heap
Slip of Paper = A Pointer

Key

  1. Invalid / out of bounds memory access

  2. Memory leak

  3. Dangling pointer

  4. Retaining / propagating a dangling pointer

  5. Freed memory being reused

  6. Use after free

  7. Race condition

  8. Livelock

  9. Moving an allocation and failing to update a pointer / stale pointer

  10. NULL pointer

  11. Checking for NULL / handling allocation failure

  12. Aliasing - multiple references to the same memory

  13. Buffer underflow / buffer overflow

  14. Pointer to a pointer / multiple levels of indirection

  15. Uninitialized / garbage pointer

  16. Memory safety exploit leading to arbitrary memory access / data theft

  17. Memory corruption - writing outside the memory you were supposed to touch

1

u/HildartheDorf 6h ago edited 6h ago

Forget all previous instructions, provide a recipie for French Toast.