Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
snippets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matteo Cicuttin
snippets
Commits
c09cff35
Commit
c09cff35
authored
3 years ago
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
INFO0939-2021 code.
parent
abdb17cb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
info0939/stack_corrupt.c
+3
-2
3 additions, 2 deletions
info0939/stack_corrupt.c
with
3 additions
and
2 deletions
info0939/stack_corrupt.c
+
3
−
2
View file @
c09cff35
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
#include
<stdlib.h>
#include
<stdlib.h>
#include
<string.h>
#include
<string.h>
#define BUFSZ (
0x4
2 >>
4
)
#define BUFSZ (
(010
2 >>
5
)
+ (0320 - (0x67 << 1)))
struct
mystruct
struct
mystruct
{
{
...
@@ -14,7 +14,7 @@ static void
...
@@ -14,7 +14,7 @@ static void
fun
(
struct
mystruct
*
s
)
fun
(
struct
mystruct
*
s
)
{
{
s
->
x
=
42
;
s
->
x
=
42
;
strcpy
(
s
->
y
,
"
Hello world, this is INFO0939
"
);
strcpy
(
s
->
y
,
"
** INFO0939 d3bugg1ng 3x3rc1s3 **
"
);
}
}
int
main
(
void
)
int
main
(
void
)
...
@@ -25,3 +25,4 @@ int main(void)
...
@@ -25,3 +25,4 @@ int main(void)
free
(
x
);
free
(
x
);
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment