tp4
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void (fonction) (void)
|
||||
{
|
||||
asm volatile (".byte 255, 255, 255, 255");
|
||||
// asm volatile ("ud2");
|
||||
}
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
fprintf(stderr, "J'execute la fonction avec le code invalide...\n");
|
||||
fonction();
|
||||
fprintf(stderr, "Et me voici de retour\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user