Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-22fa
final
Commits
b0381c26
Commit
b0381c26
authored
2 years ago
by
An N Tran
Browse files
Options
Download
Email Patches
Plain Diff
Fix problems on goldendoodle
parent
81c1ff7f
master
No related merge requests found
Pipeline
#74630
failed with stage
in 2 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+3
-1
Makefile
tests/hello_use_after_free2.c
+1
-1
tests/hello_use_after_free2.c
with
4 additions
and
2 deletions
+4
-2
Makefile
View file @
b0381c26
...
@@ -40,7 +40,7 @@ tests/%-expected-stdout.txt: tests/%.c
...
@@ -40,7 +40,7 @@ tests/%-expected-stdout.txt: tests/%.c
grep
'// stdout: '
$^
|
sed
's/\/\/ stdout: //'
>
$@
grep
'// stdout: '
$^
|
sed
's/\/\/ stdout: //'
>
$@
tests/%-expected-stderr.txt
:
tests/%.c
tests/%-expected-stderr.txt
:
tests/%.c
grep
'// stderr: '
$^
|
sed
's/\/\/ stderr: //'
>
$@
grep
'// stderr: '
$^
|
sed
's/\/\/ stderr: //'
|
head
--lines
=
1
>
$@
tests/%-actual-code.txt
:
bin/%
tests/%-actual-code.txt
:
bin/%
$^
>
$
(
@:code.txt
=
stdout.txt
)
2>
$
(
@:code.txt
=
stderr.txt
)
;
\
$^
>
$
(
@:code.txt
=
stdout.txt
)
2>
$
(
@:code.txt
=
stderr.txt
)
;
\
...
@@ -52,6 +52,8 @@ tests/%-actual-code.txt: bin/%
...
@@ -52,6 +52,8 @@ tests/%-actual-code.txt: bin/%
echo
$$
code
>
$@
echo
$$
code
>
$@
%-result
:
tests/%-actual-code.txt tests/%-expected-code.txt tests/%-expected-stdout.txt tests/%-expected-stderr.txt
%-result
:
tests/%-actual-code.txt tests/%-expected-code.txt tests/%-expected-stdout.txt tests/%-expected-stderr.txt
head
--lines
=
1
$
(
<:code.txt
=
stderr.txt
)
>
tmp
;
\
mv
tmp
$
(
<:code.txt
=
stderr.txt
)
;
\
diff
-u
$(
word
3,
$^
)
$
(
<:code.txt
=
stdout.txt
)
&&
\
diff
-u
$(
word
3,
$^
)
$
(
<:code.txt
=
stdout.txt
)
&&
\
diff
-u
$(
word
4,
$^
)
$
(
<:code.txt
=
stderr.txt
)
&&
\
diff
-u
$(
word
4,
$^
)
$
(
<:code.txt
=
stderr.txt
)
&&
\
diff
-u
$(
word
2,
$^
)
$<
&&
\
diff
-u
$(
word
2,
$^
)
$<
&&
\
...
...
This diff is collapsed.
Click to expand it.
tests/hello_use_after_free2.c
View file @
b0381c26
...
@@ -16,7 +16,7 @@ int main() {
...
@@ -16,7 +16,7 @@ int main() {
// stdout: HELO
// stdout: HELO
// stderr: Invalid heap access: address 0x100001f
d8
is not in an allocation or was already freed
// stderr: Invalid heap access: address 0x100001f
c0
is not in an allocation or was already freed
// stderr: at /lib/x86_64-linux-gnu/libc.so.6(+0x18b675)
// stderr: at /lib/x86_64-linux-gnu/libc.so.6(+0x18b675)
// stderr: __strlen_avx2
// stderr: __strlen_avx2
// stderr: strlen-avx2.S:65
// stderr: strlen-avx2.S:65
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help