8000 opcodesswitch: fix: OP_BS_GET_UTF16/32 flags decoding by bettio · Pull Request #1722 · atomvm/AtomVM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

opcodesswitch: fix: OP_BS_GET_UTF16/32 flags decoding #1722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2025

Conversation

bettio
Copy link
Collaborator
@bettio bettio commented Jun 19, 2025

Flags must be converted with DECODE_FLAGS_LIST before using them. Fixes "Passing a term to a function expecting a non-term" CodeQL error.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@pguyot
Copy link
Collaborator
pguyot commented Jun 19, 2025

Oh, because I'm reimplementing opcodeswitch for JIT, could we have a test for this? It will help ensuring compatibility of JIT implementation.

bettio added 2 commits June 19, 2025 13:02
Fixes "Passing a term to a function expecting a non-term" CodeQL
warning.

Signed-off-by: Davide Bettio <davide@uninstall.it>
BitstringFlags values are coming from flags encoding in istructions such
as bs_get_utf16.

Signed-off-by: Davide Bettio <davide@uninstall.it>
@bettio bettio force-pushed the fix-get-utf16-utf32 branch from e3c6555 to ba6a22d Compare June 19, 2025 11:06
@bettio
Copy link
Collaborator Author
bettio commented Jun 19, 2025

Oh, because I'm reimplementing opcodeswitch for JIT, could we have a test for this? It will help ensuring compatibility of JIT implementation.

it was just a red herring, I fixed the warning and added a short comment, no additional work is needed.

@bettio bettio merged commit 99a9e91 into atomvm:release-0.6 Jun 21, 2025
146 of 148 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0