What to choose as a good marker in C?

So, I am wondering if there is a good marker to choose from in C, besides the usual 0xDEADBEEFor less attractive (for the correct code) 0x0BADA550.

Which is your favorite? Is there any reason for choosing this or that value?

+3
source share
6 answers

Wikipedia has a whole page on this subject; It provides many examples and well-known programs in which they are used.

, x86, @torak, , int 3, . , CC90CC90, int 3 nop.

+6

, , , 0xCCCCCCCC. - , 0xCC INT 3.

IA-32 x86-64. , .

+4

, 0x80000000, 0x80000001 , . , , ( ). , ALU , , -ftrapv .

+3

0xBABECAFE, 0xBADADD00, 0xBADBAD00, 0xFADEFADE

0xCAFEBABE , Java. , , , - , , . 0x00000000 F s.

0

, . , , ? , .

0

. , . :

"DEADBEEF? , ".

0

Source: https://habr.com/ru/post/1764037/


All Articles