Skip to content

Fix UBSan float-cast-overflow in BridgingTest.numberTest (#56693)#56693

Open
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D103954447
Open

Fix UBSan float-cast-overflow in BridgingTest.numberTest (#56693)#56693
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D103954447

Conversation

@christophpurrer
Copy link
Copy Markdown
Contributor

@christophpurrer christophpurrer commented May 6, 2026

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

Reviewed By: shwanton

Differential Revision: D103954447

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 6, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 6, 2026

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D103954447.

@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels May 6, 2026
@meta-codesync meta-codesync Bot changed the title Fix UBSan float-cast-overflow in BridgingTest.numberTest Fix UBSan float-cast-overflow in BridgingTest.numberTest (#56693) May 6, 2026
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
@christophpurrer christophpurrer force-pushed the export-D103954447 branch 2 times, most recently from 5817587 to 3c5feca Compare May 6, 2026 17:32
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
christophpurrer added a commit to christophpurrer/react-native-macos that referenced this pull request May 6, 2026
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

UndefinedBehaviorSanitizer: float-cast-overflow xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging/tests/BridgingTest.cpp:73:3

Test was never completed. The test process might have crashed.
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Test UI: https://www.internalfb.com/intern/testinfra/testrun/22236523178966589
Network: Up: 18KiB  Down: 19KiB  (reSessionID-47fd7d68-411c-4457-bd30-9da43be7bd6e)
Loading targets.     Remaining     0/71                                                                                                                                                    1705 dirs read, 2636 targets declared
Analyzing targets.   Remaining     0/699                                                                                                                                                   23626 actions, 35339 artifacts declared
Executing actions.   Remaining     0/4161                                                                                                                                                  37:55.2s exec time total
Command: test.     Finished 1 local, 1256 cache (99% hit)                                                                                                                                  37:49.9s exec time cached (99%)                                      
Time elapsed: 8.6s
Buck UI: https://www.internalfb.com/buck2/0e81623b-a566-4181-a630-633a9b0144f5
Tests finished: Pass 23. Fail 1. Timeout 0. Fatal 0. Skip 0. Omit 0. Infra Failure 0. Build failure 0
1 TESTS FAILED
  ✗ fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest

Run $ fdb buck test <args> to debug fbsource//xplat/js/react-native-github/packages/react-native/ReactCommon/react/bridging:tests - BridgingTest.numberTest
      ^^^ just prefix your previous command! ($ fdb !!)
Learn more at https://fburl.com/fdb
Use Devmate to fix your errors. Just click the following link: fb-vscode://nuclide.code-compose/devmate/fixtests?run_id=22236523178966589&expiry=2026-05-05T23%3A25%3A46Z&viewer=635101758&signature=43cbc805019cc8a73bade59398f40cf642acd0f57d8fb3377839888ccf52d5d85d5c63d9d0c39ea9956d9aefc641fda19c87c6cdba6136b5a3dd5a67c42cdb92dc4721930a
[chpurrer@166047.od /data/sandcastle/boxes/fbsource (b6d9fba9d4)]$ 
```

Reviewed By: shwanton

Differential Revision: D103954447
)

Summary:

Changelog:
[Internal] - Remove UB-relying assertion from BridgingTest.numberTest

Reviewed By: shwanton

Differential Revision: D103954447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant