Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
fa1b5d1e
Commit
fa1b5d1e
authored
May 04, 2016
by
Hisham
Browse files
Fix a small undefined behavior detected by libubsan.
parent
19f0f4db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Process.c
View file @
fa1b5d1e
...
...
@@ -394,7 +394,7 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) {
int
indent
=
(
this
->
indent
<
0
?
-
this
->
indent
:
this
->
indent
);
for
(
int
i
=
0
;
i
<
32
;
i
++
)
if
(
indent
&
(
1
<<
i
))
if
(
indent
&
(
1
U
<<
i
))
maxIndent
=
i
+
1
;
for
(
int
i
=
0
;
i
<
maxIndent
-
1
;
i
++
)
{
int
written
;
...
...
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