Skip to content
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

posix: net: Fix undefined behavior #87529

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DanTGL
Copy link
Contributor

@DanTGL DanTGL commented Mar 23, 2025

The signedness of the variable caused undefined behavior because the sign bit is modified when it gets left-shifted.

This fixes that by changing it to an unsigned variable.

The signedness of the variable caused undefined behavior because the
sign bit is modified when it gets left-shifted.

This fixes that by changing it to an unsigned variable.

Signed-off-by: Daniel Hajjar <daniel.hajjar16@gmail.com>
@zephyrbot zephyrbot added size: XS A PR changing only a single line of code area: POSIX POSIX API Library labels Mar 23, 2025
@zephyrbot zephyrbot requested review from cfriedt and ycsin March 23, 2025 18:59
@DanTGL
Copy link
Contributor Author

DanTGL commented Mar 23, 2025

Seems like qemu_cortex_m0/nrf51822 doesn't have enough RAM for the integration tests

@cfriedt
Copy link
Member

cfriedt commented Mar 24, 2025

Seems like qemu_cortex_m0/nrf51822 doesn't have enough RAM for the integration tests

integration_platforms:

@DanTGL
Copy link
Contributor Author

DanTGL commented Mar 24, 2025

Seems like qemu_cortex_m0/nrf51822 doesn't have enough RAM for the integration tests

integration_platforms:

https://github.com/zephyrproject-rtos/zephyr/actions/runs/14022028991/job/39255224559?pr=87529#step:8:38

It's the tests in tests/posix/c_lib_ext that fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants