Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
binutils-gdb
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
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
Sebastien Michelland
binutils-gdb
Commits
5f57d4ec
Commit
5f57d4ec
authored
5 years ago
by
Alan Modra
Browse files
Options
Downloads
Patches
Plain Diff
ubsan: cr16: left shift cannot be represented in type 'int'
* cr16-dis.c (cr16_match_opcode): Avoid shift left of signed value.
parent
2c5c1196
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opcodes/ChangeLog
+4
-0
4 additions, 0 deletions
opcodes/ChangeLog
opcodes/cr16-dis.c
+1
-2
1 addition, 2 deletions
opcodes/cr16-dis.c
with
5 additions
and
2 deletions
opcodes/ChangeLog
+
4
−
0
View file @
5f57d4ec
2020-01-04 Alan Modra <amodra@gmail.com>
* cr16-dis.c (cr16_match_opcode): Avoid shift left of signed value.
2020-01-04 Alan Modra <amodra@gmail.com>
* crx-dis.c (match_opcode): Avoid shift left of signed value.
...
...
This diff is collapsed.
Click to expand it.
opcodes/cr16-dis.c
+
1
−
2
View file @
5f57d4ec
...
...
@@ -319,8 +319,7 @@ cr16_match_opcode (void)
{
unsigned
long
mask
;
/* The instruction 'constant' opcode doesn't exceed 32 bits. */
unsigned
long
doubleWord
=
(
cr16_words
[
1
]
+
(
cr16_words
[
0
]
<<
16
))
&
0xffffffff
;
unsigned
long
doubleWord
=
cr16_words
[
1
]
+
((
unsigned
)
cr16_words
[
0
]
<<
16
);
/* Start searching from end of instruction table. */
instruction
=
&
cr16_instruction
[
NUMOPCODES
-
2
];
...
...
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