Commit ca43482
fix(ovsm): Fix account field access and register clobbering bug
- Fix Solana serialization offsets: lamports at +72, data_len at +80, data at +88
- Fix critical register clobbering bug: next_reg now starts at 8 to skip reserved R6/R7
- Bump osvm to 0.9.7, ovsm to 1.0.5
The register clobbering bug caused the saved accounts pointer (R6) to be
overwritten with 0 when allocating temp registers for constants. This fix
ensures temp registers never conflict with reserved registers 6 and 7.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent e540aec commit ca43482
File tree
1,174 files changed
+32831
-68
lines changed- crates/ovsm
- src/compiler
- programs/bbs-registry
- src
- target
- deploy
- release
- .fingerprint
- ahash-d4809e157d4e009a
- autocfg-73f9ac7eff53a26a
- blake3-d0c32e26fae0889d
- borsh-derive-504e0da679fd924f
- borsh-derive-9838509e386ce657
- borsh-derive-internal-1a7e2f64e361e063
- borsh-fd067d187b7438b0
- borsh-schema-derive-internal-2ddadee15b78078b
- bs58-e07edcc46c34e60f
- bv-4078a6612265c58f
- bytemuck_derive-82d11335c2475369
- cc-bc8e791b2bd12704
- cfg_aliases-e50d78f8086b8abd
- equivalent-829e61f1c8c5331b
- feature-probe-3dcc520177ec6116
- find-msvc-tools-212047f5fcd1d2c9
- generic-array-f4aceae8cf2432e0
- hashbrown-3ce1d093433bd05d
- indexmap-4c8c3dc4e50c402f
- memoffset-69fa816f31db80bd
- num-derive-9ac43e74851d779f
- num-traits-59d95017ee092586
- once_cell-c112e0b9b2a6c7e6
- proc-macro-crate-498f3fc7c5d3bb90
- proc-macro-crate-73868f8c245c928b
- proc-macro2-41d408ff998c57aa
- proc-macro2-7fd0a37594b9a399
- proc-macro2-87ecbc1875006deb
- quote-32f657842868c3c5
- quote-9d3a61db6c13606b
- quote-9f8a5ebc8aee81a6
- serde-17242bb2f2083494
- serde-23875b425a2ef930
- serde-6b8f0e25869f6e7a
- serde-99c88bf1d5413f38
- serde_core-054b299e2cd9a016
- serde_core-29d095b257db3fac
- serde_core-3804a7716b5891fa
- serde_derive-f5b1e29284257b6e
- serde_json-7532f5a1c98237ce
- shlex-f435a8de00bd16a7
- solana-sdk-macro-14a3c7015585bff8
- syn-44c5aefa8c413f0c
- syn-b82e4c34a9fb93ba
- syn-bcf8a4cd3878ad9c
- syn-d5e63157f550083d
- thiserror-151e91042a8818b1
- thiserror-266ec92943ad339b
- thiserror-impl-18ea8c1194dbb27c
- thiserror-impl-6c54bcd41e2c1387
- toml-e7a2161b3d9ad38e
- toml_datetime-d312b20ac7cf043e
- toml_edit-901ae947f149f39b
- toml_parser-3e1a3116e80f1b40
- typenum-1e892a73cd963bd1
- unicode-ident-bde03440a7946a6e
- version_check-19b8ed129d8fdb69
- winnow-9c673c46e5b484f0
- zerocopy-114727478390646b
- build
- ahash-d4809e157d4e009a
- blake3-d0c32e26fae0889d
- borsh-fd067d187b7438b0
- bv-4078a6612265c58f
- generic-array-f4aceae8cf2432e0
- memoffset-69fa816f31db80bd
- num-traits-59d95017ee092586
- proc-macro2-41d408ff998c57aa
- proc-macro2-7fd0a37594b9a399
- quote-32f657842868c3c5
- quote-9d3a61db6c13606b
- serde-23875b425a2ef930
- serde-6b8f0e25869f6e7a
- serde-99c88bf1d5413f38
- out
- serde_core-054b299e2cd9a016
- out
- serde_core-29d095b257db3fac
- serde_json-7532f5a1c98237ce
- syn-44c5aefa8c413f0c
- syn-d5e63157f550083d
- thiserror-151e91042a8818b1
- thiserror-266ec92943ad339b
- typenum-1e892a73cd963bd1
- zerocopy-114727478390646b
- deps
- sbpf-solana-solana
- release
- .fingerprint
- ahash-6b013d5523ba22cb
- ahash-aed690b898ffae09
- arrayref-78af862ea4b73b82
- arrayvec-438c0a92860318bc
- bbs-registry-ef2d868857d20f40
- bincode-e85d27088f734098
- blake3-863d8880aa14a7f9
- blake3-f9323c3ca55b0a26
- block-buffer-831c295216962d97
- borsh-490c8e9798cff7db
- borsh-55ca4bfeec66cb86
- borsh-9d510166901b7813
- bs58-70bec27689ba81a0
- bv-28434dfde85481f3
- bv-d69165876dfe8f12
- bytemuck-230ce523956e0af3
- cfg-if-26681e5f01c5d020
- constant_time_eq-d726bec85bb98541
- crypto-common-3af4ad81833af785
- digest-b8dc4fb3250ffcb9
- five8-a497b8557e5fe6b8
- five8_const-7f5e7a081fccff12
- five8_core-c2bf315dd2948f4f
- generic-array-aadb4cdf0084de54
- generic-array-de24427dd904746a
- getrandom-510301dbbc1af537
- hashbrown-400c6ce35878c616
- itoa-fcdc5acef5020a10
- keccak-2a71f83fe80ff0ac
- lazy_static-1da8d0a1698b2ae6
- log-74ab1d9c1d7095cc
- memchr-352de1b04698a618
- memoffset-517e16b4f2a6cbe4
- memoffset-d3be6ca49322e5b1
- num-traits-308ce8f953ba8e2d
- num-traits-35f6bc4936308672
- once_cell-f88372fc8f99a903
- ryu-4b7916464539fc99
- serde-2f4d3031b564fb5f
- serde-c7a8be2ee9cfbdee
- serde_bytes-52bd7a914130501e
- serde_core-6f26ae96ac06fbd0
- serde_core-c49a30b397e748f9
- serde_json-828f32b53d75c3c3
- serde_json-e465900453d0fc71
- sha2-d9746f88658d3b38
- sha3-a71ff3cdf0c7df8d
- solana-account-8f4f3d2ff0c962c1
- solana-account-info-1b34b913a9e75cf2
- solana-address-lookup-table-interface-e4ff24e451fce274
- solana-atomic-u64-c913857d2e397fe2
- solana-big-mod-exp-6edbcf326035872b
- solana-bincode-bec9f1c6992b6083
- solana-blake3-hasher-e30d579620422a3a
- solana-borsh-eef0a5f3cb16a400
- solana-clock-9d4ea1dbb714d07d
- solana-cpi-198dc4aef38eadb9
- solana-decode-error-734f6c5e3e0a15ed
- solana-define-syscall-a9a8e17746eb5ae6
- solana-epoch-rewards-e023bebe0ccbb674
- solana-epoch-schedule-f8d474a998ef943e
- solana-feature-gate-interface-e61df77d86f6b631
- solana-fee-calculator-2211070f0bf188ce
- solana-hash-5733a7bcb33a55e1
- solana-instruction-0e481963b6caced7
- solana-instructions-sysvar-83143dd2aebeb13e
- solana-keccak-hasher-999505ef9fd0f653
- solana-last-restart-slot-6a4ac81ddc91b5c0
- solana-loader-v2-interface-2f6c2b1d37af382a
- solana-loader-v3-interface-28ae59c8f6149903
- solana-loader-v4-interface-936b810224f3b0a1
- solana-message-1377229abeb7006e
- solana-msg-a8177be060dcc099
- solana-native-token-5d3cfe4722429e0d
- solana-nonce-4b4578ee36bbe716
- solana-program-b01fed707ddbcbbc
- solana-program-entrypoint-e9d359c5e1768b77
- solana-program-error-fa18061b7fa07fbf
- solana-program-memory-a18b8573c1414f89
- solana-program-option-d9358a16aa42dd04
- solana-program-pack-12f9e04a8b18f6d5
- solana-pubkey-0db3a8bf922e99b6
- solana-rent-2f6efbf5238ac6e9
- solana-sanitize-ae087d19eca7c482
- solana-sdk-ids-cdb04878e7982ee4
- solana-secp256k1-recover-35633ec949754053
- solana-serde-varint-a05f1611eac80652
- solana-serialize-utils-2c1a4cccdcf3e184
- solana-sha256-hasher-0e8dd4bf192c98ea
- solana-short-vec-5aa0ae5667561c59
- solana-slot-hashes-0eb569828017e1c2
- solana-slot-history-df92ea14adf3548e
- solana-stable-layout-5c0c7c9587ee99a3
- solana-stake-interface-4f9474ba079b0964
- solana-system-interface-555d8fea3a7897b9
- solana-sysvar-2202c818576d9476
- solana-sysvar-id-0a65e5970bafe778
- solana-transaction-error-0308303c6ea0a35b
- solana-vote-interface-d44c83756033c77a
- subtle-b11979a7d6f9da86
- thiserror-3a1bd799f0225d2b
- thiserror-94caa586b94ffa52
- thiserror-b94a827dbdfac13a
- thiserror-ccb4aeb61e667f08
- typenum-a9b6e099380b3d8d
- typenum-af7388cdaa9d06d1
- zerocopy-417b2bec4b1cc86a
- zerocopy-89fd07bd1cad6fe3
- build
- ahash-6b013d5523ba22cb
- blake3-863d8880aa14a7f9
- borsh-9d510166901b7813
- bv-d69165876dfe8f12
- out
- generic-array-de24427dd904746a
- memoffset-517e16b4f2a6cbe4
- num-traits-308ce8f953ba8e2d
- serde-c7a8be2ee9cfbdee
- out
- serde_core-6f26ae96ac06fbd0
- out
- serde_json-e465900453d0fc71
- thiserror-94caa586b94ffa52
- out
- thiserror-b94a827dbdfac13a
- typenum-af7388cdaa9d06d1
- out
- zerocopy-417b2bec4b1cc86a
- deps
- src
- clparse
- commands
- utils
- bbs
- tui
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,174 files changed
+32831
-68
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
200 | 207 | | |
201 | 208 | | |
202 | 209 | | |
| |||
518 | 525 | | |
519 | 526 | | |
520 | 527 | | |
521 | | - | |
522 | | - | |
523 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
524 | 548 | | |
525 | 549 | | |
526 | 550 | | |
| |||
529 | 553 | | |
530 | 554 | | |
531 | 555 | | |
532 | | - | |
533 | | - | |
534 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
535 | 567 | | |
536 | 568 | | |
537 | 569 | | |
538 | | - | |
539 | | - | |
| 570 | + | |
| 571 | + | |
540 | 572 | | |
541 | | - | |
| 573 | + | |
542 | 574 | | |
543 | 575 | | |
544 | 576 | | |
545 | 577 | | |
546 | 578 | | |
547 | 579 | | |
548 | 580 | | |
549 | | - | |
| 581 | + | |
550 | 582 | | |
551 | | - | |
| 583 | + | |
552 | 584 | | |
553 | 585 | | |
554 | 586 | | |
| |||
561 | 593 | | |
562 | 594 | | |
563 | 595 | | |
564 | | - | |
565 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
566 | 599 | | |
567 | 600 | | |
568 | 601 | | |
| |||
573 | 606 | | |
574 | 607 | | |
575 | 608 | | |
| 609 | + | |
576 | 610 | | |
577 | | - | |
| 611 | + | |
578 | 612 | | |
579 | 613 | | |
580 | 614 | | |
581 | 615 | | |
582 | 616 | | |
583 | 617 | | |
584 | 618 | | |
585 | | - | |
| 619 | + | |
| 620 | + | |
586 | 621 | | |
587 | | - | |
| 622 | + | |
588 | 623 | | |
589 | 624 | | |
590 | 625 | | |
| |||
595 | 630 | | |
596 | 631 | | |
597 | 632 | | |
| 633 | + | |
| 634 | + | |
598 | 635 | | |
599 | 636 | | |
600 | 637 | | |
| |||
606 | 643 | | |
607 | 644 | | |
608 | 645 | | |
609 | | - | |
| 646 | + | |
610 | 647 | | |
611 | 648 | | |
612 | 649 | | |
613 | 650 | | |
614 | 651 | | |
615 | 652 | | |
616 | 653 | | |
617 | | - | |
| 654 | + | |
| 655 | + | |
618 | 656 | | |
619 | | - | |
| 657 | + | |
620 | 658 | | |
621 | 659 | | |
622 | 660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
591 | 594 | | |
592 | 595 | | |
593 | 596 | | |
594 | | - | |
| 597 | + | |
| 598 | + | |
595 | 599 | | |
596 | | - | |
597 | | - | |
| 600 | + | |
| 601 | + | |
598 | 602 | | |
599 | 603 | | |
600 | 604 | | |
| |||
0 commit comments