this post was submitted on 29 Feb 2024
572 points (100.0% liked)

196

16436 readers
2212 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] henfredemars@infosec.pub 25 points 8 months ago (1 children)
[–] GregorTacTac@lemm.ee 28 points 8 months ago (1 children)
[–] PM_ME_VINTAGE_30S@lemmy.sdf.org 12 points 8 months ago (1 children)

In the ASCII character encoding, the hexadecimal number 61 is the letter 'a'. (Yes, it is lowercase.) 0x is just a notation that indicates a number is in hexadecimal, as opposed to decimal or binary.

Therefore, 0x6161616161616161 translates to the string "aaaaaaaa" (without the quotes or a null terminator).

[–] deur@feddit.nl 5 points 8 months ago

Its worth noting the null terminator is part of the string's encoding rather than being part of the string itself, so the lack of a null terminator is more of an implementation detail. Kind of like describing a pointer as "not a fat pointer".