Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTF Search
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
Container registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CTF Search Team
CTF Search
Commits
dc54d7dc
Commit
dc54d7dc
authored
5 years ago
by
Timmy Chan
Browse files
Options
Downloads
Patches
Plain Diff
Quick fix gcc version bug
parent
546ad089
Branches
Branches containing commit
No related tags found
1 merge request
!5
Feat/cve linux kernel
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exploitdb/ctfsetup/qemu/setup.py
+8
-0
8 additions, 0 deletions
exploitdb/ctfsetup/qemu/setup.py
with
8 additions
and
0 deletions
exploitdb/ctfsetup/qemu/setup.py
+
8
−
0
View file @
dc54d7dc
...
@@ -127,6 +127,14 @@ def derive_input_kwargs(**kwargs):
...
@@ -127,6 +127,14 @@ def derive_input_kwargs(**kwargs):
if
not
gcc_version
:
if
not
gcc_version
:
raise
Exception
(
"
GCC version cannot be derived from kernel version
"
)
raise
Exception
(
"
GCC version cannot be derived from kernel version
"
)
kwargs
[
'
gcc_version
'
]
=
gcc_version
kwargs
[
'
gcc_version
'
]
=
gcc_version
# Buildroot has a major bug in versions before 2018.08. Do not use it no matter what.
# Quick workaround: Use 2019.02. and the gcc version has to be set to 4.9.x
# FIXME: implement proper fix
# if the gcc_version is 4.x, change it to 4.9.x
if
kwargs
[
'
gcc_version
'
][:
5
]
==
"
gcc 4
"
:
kwargs
[
'
gcc_version
'
]
=
"
gcc 4.9.x
"
verbose_log
(
"
gcc_version derived from kernel version:
"
,
kwargs
[
'
gcc_version
'
])
verbose_log
(
"
gcc_version derived from kernel version:
"
,
kwargs
[
'
gcc_version
'
])
return
kwargs
return
kwargs
...
...
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