Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Main
Synchronet
Commits
d63dd43c
Commit
d63dd43c
authored
4 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Prevent dereferencing NULL bar or cur with WIN_DYN
This would be an API violation, but we shouldn't crash about it.
parent
d5a2666a
No related branches found
No related tags found
No related merge requests found
Pipeline
#7604
failed
4 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uifc/uifc32.c
+8
-2
8 additions, 2 deletions
src/uifc/uifc32.c
with
8 additions
and
2 deletions
src/uifc/uifc32.c
+
8
−
2
View file @
d63dd43c
...
@@ -1890,8 +1890,14 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar
...
@@ -1890,8 +1890,14 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar
else
else
mswait
(
1
);
mswait
(
1
);
if
(
mode
&
WIN_DYN
)
{
if
(
mode
&
WIN_DYN
)
{
save_menu_cur
=*
cur
;
if
(
cur
)
save_menu_bar
=*
bar
;
save_menu_cur
=*
cur
;
else
save_menu_cur
=
-
1
;
if
(
bar
)
save_menu_bar
=*
bar
;
else
save_menu_bar
=-
1
;
save_menu_opts
=
opts
;
save_menu_opts
=
opts
;
return
(
-
2
-
gotkey
);
return
(
-
2
-
gotkey
);
}
}
...
...
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