{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,15]],"date-time":"2026-11-15T11:44:20Z","timestamp":1794743060857,"version":"4.9.1"},"reference-count":67,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA1","license":[{"start":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T00:00:00Z","timestamp":1775779200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"Australian Research Council","award":["DP240103194"],"award-info":[{"award-number":["DP240103194"]}],"id":[{"id":"https:\/\/ror.org\/05mmh0f86","id-type":"ROR","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,4,10]]},"abstract":"<jats:p>\n                    Rust combines high performance with strong memory safety through strict ownership and borrowing rules. However, its unsafe mode reintroduces vulnerabilities by allowing raw-pointer manipulation, a major source of memory-safety bugs. Existing whole-program analyses for Rust often suffer from low recall and high false positives. Since unsafe code is typically small and isolated, we propose a demand-driven alternative. We present\n                    <jats:sc>Pincer<\/jats:sc>\n                    , a flow-, field-, and context-sensitive dataflow analysis framework built on IFDS.\n                    <jats:sc>Pincer<\/jats:sc>\n                    performs mutually bidirectional analysis\u2014backward to trace raw-pointer origins and forward to explore aliases\u2014adapting this strategy to Rust\u2019s ownership model and low-level semantics. On this foundation,\n                    <jats:sc>Pincer<\/jats:sc>\n                    performs a modular, bottom-up vulnerability-oriented typestate analysis to detect\n                    <jats:italic toggle=\"yes\">use-after-free<\/jats:italic>\n                    and\n                    <jats:italic toggle=\"yes\">double-free<\/jats:italic>\n                    bugs. It tracks raw-pointer aliasing and nullness, exploits strong updates at container-manipulating returns, and leverages Rust\u2019s safety invariants to prune provably safe regions via AXM checking. The modular design enables controlled exploration, optionally under a budget, improving scalability. Controlled unsoundness further boosts efficiency while maintaining high recall and precision. We evaluate\n                    <jats:sc>Pincer<\/jats:sc>\n                    on vulnerable programs and large Rust projects. The results show that\n                    <jats:sc>Pincer<\/jats:sc>\n                    detects memory-safety errors more accurately than state-of-the-art analyses while maintaining practical efficiency.\n                  <\/jats:p>","DOI":"10.1145\/3798266","type":"journal-article","created":{"date-parts":[[2026,4,10]],"date-time":"2026-04-10T14:33:43Z","timestamp":1775831623000},"page":"1817-1845","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["From Raw Pointers to Memory Safety: A Modular Demand-Driven Typestate Analysis for Rust"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-0576-6243","authenticated-orcid":false,"given":"Wei","family":"Li","sequence":"first","affiliation":[{"name":"UNSW Sydney, Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7400-132X","authenticated-orcid":false,"given":"Wenyao","family":"Chen","sequence":"additional","affiliation":[{"name":"UNSW Sydney, Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0380-3506","authenticated-orcid":false,"given":"Jingling","family":"Xue","sequence":"additional","affiliation":[{"name":"UNSW Sydney, Sydney, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,4,10]]},"reference":[{"key":"e_1_3_1_2_2","article-title":"Program analysis and specialization for the C programming language","author":"Andersen Lars Ole","year":"1994","unstructured":"Lars Ole Andersen. 1994. Program analysis and specialization for the C programming language. Ph.D. Dissertation.","journal-title":"Ph.D. Dissertation"},{"key":"e_1_3_1_3_2","unstructured":"Artisan-Lab. 2025. RAPx (Rust Analysis Platform with Extensions). Retrieved September 17 2025 from https:\/\/github.com\/Artisan-Lab\/RAPx"},{"key":"e_1_3_1_4_2","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594299"},{"key":"e_1_3_1_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/236337.236371"},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1145\/3477132.3483570"},{"key":"e_1_3_1_7_2","first-page":"6947","volume-title":"32nd USENIX Security Symposium (USENIX Security 23)","author":"Bang Inyoung","year":"2023","unstructured":"Inyoung Bang, Martin Kayondo, HyunGon Moon, and Yunheung Paek. 2023. TRust: A Compilation Framework for In-process Isolation to Protect Safe Rust against Untrusted Code. In 32nd USENIX Security Symposium (USENIX Security 23). USENIX Association, Anaheim, CA, 6947\u20136964. https:\/\/www.usenix.org\/conference\/usenixsecurity23\/presentation\/bang"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/1297027.1297050"},{"key":"e_1_3_1_9_2","first-page":"1","volume-title":"14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20)","author":"Boos Kevin","year":"2020","unstructured":"Kevin Boos, Namitha Liyanage, Ramla Ijaz, and Lin Zhong. 2020. Theseus: an Experiment in Operating System Structure and State Management. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20). USENIX Association, 1\u201319. https:\/\/www.usenix.org\/conference\/osdi20\/presentation\/boos"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/3643749"},{"key":"e_1_3_1_11_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24730-2_15"},{"key":"e_1_3_1_12_2","doi-asserted-by":"publisher","DOI":"10.1145\/3519939.3523445"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/3542948"},{"key":"e_1_3_1_14_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3443624"},{"key":"e_1_3_1_15_2","doi-asserted-by":"publisher","DOI":"10.1145\/512529.512538"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1145\/378795.378811"},{"key":"e_1_3_1_17_2","unstructured":"PhASAR Developers. 2026. Double-Free Config in PhASAR. Retrieved January 28 2026 from https:\/\/github.com\/secure-software-engineering\/phasar\/blob\/development\/config\/double-free-config.json"},{"key":"e_1_3_1_18_2","unstructured":"PhASAR Developers. 2026. Proposal for Field Sensitivity in PhASAR\u2019s IFDS\/IDE analyses. Retrieved January 28 2026 from https:\/\/github.com\/secure-software-engineering\/phasar\/issues\/777"},{"key":"e_1_3_1_19_2","unstructured":"The Servo Project Developers. 2025. Servo the embeddable independent memory-safe modular parallel web rendering engine. Retrieved September 17 2025 from https:\/\/servo.org\/"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1007\/11823230_27"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00025"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.1145\/1348250.1348255"},{"key":"e_1_3_1_23_2","unstructured":"Firecracker. 2025. Firecracker - Secure and fast microVMs for serverless computing. Retrieved September 17 2025 from https:\/\/firecracker-microvm.github.io\/"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/1950365.1950394"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","unstructured":"Dongjie He Haofeng Li Lei Wang Haining Meng Hengjie Zheng Jie Liu Shuangwei Hu Lian Li and Jingling Xue. 2019. Performance-Boosting Sparsification of the IFDS Algorithm with Applications to Taint Analysis. In 2019 34th IEEE\/ACM International Conference on Automated Software Engineering (ASE). 267\u2013279. doi:10.1109\/ASE.2019.00034","DOI":"10.1109\/ASE.2019.00034"},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1145\/378795.378802"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/3158154"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3468264.3468576"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1145\/143095.143137"},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1145\/3236024.3236079"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1145\/3503222.3507770"},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","unstructured":"Wei Li Wenyao Chen and Jingling Xue. 2026. From Raw Pointers to Memory Safety: A Modular Demand-Driven Typestate Analysis for Rust (Artifact). https:\/\/doi.org\/10.5281\/zenodo.17320182 10.5281\/zenodo.17320182","DOI":"10.5281\/zenodo.17320182"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3696443.3708921"},{"key":"e_1_3_1_34_2","doi-asserted-by":"publisher","DOI":"10.1145\/3640537.3641574"},{"key":"e_1_3_1_35_2","doi-asserted-by":"publisher","DOI":"10.1145\/3460120.3484541"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-031-17143-7_33"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","unstructured":"Jiun Min Dongyeon Yu Seongyun Jeong Dokyung Song and Yuseok Jeon. 2024. ERASan: Efficient Rust Address Sanitizer. In 2024 IEEE Symposium on Security and Privacy (SP). 4053\u20134068. doi:10.1109\/SP54263.2024.00258","DOI":"10.1109\/SP54263.2024.00258"},{"key":"e_1_3_1_38_2","unstructured":"Miri. 2025. An interpreter for Rust\u2019s mid-level intermediate representation. Retrieved September 17 2025 from https:\/\/github.com\/rust-lang\/miri"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2024.3447671"},{"key":"e_1_3_1_40_2","unstructured":"OpenEthereum. 2022. OpenEthereum - Fast and feature-rich Ethereum client. Retrieved April 5 2022 from https:\/\/openethereum.github.io\/"},{"key":"e_1_3_1_41_2","doi-asserted-by":"publisher","DOI":"10.1145\/1290520.1290524"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/3385412.3386036"},{"key":"e_1_3_1_43_2","unstructured":"RedoxOS. 2024. Redox - Your Next(Gen) OS. Retrieved September 9 2024 from https:\/\/www.redox-os.org\/"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.1145\/199448.199462"},{"key":"e_1_3_1_45_2","unstructured":"RUSTSEC. 2025. A vulnerability database for the Rust ecosystem. Retrieved September 17 2025 from https:\/\/rustsec.org\/"},{"key":"e_1_3_1_46_2","unstructured":"RUSTSEC-2019-0009. 2025. Double-free and use-after-free in SmallVec::grow(). Retrieved September 17 2025 from https:\/\/rustsec.org\/advisories\/RUSTSEC-2019-0009.html"},{"key":"e_1_3_1_47_2","unstructured":"RUSTSEC-2023-0054. 2025. Use-after-free in vec_insert_bytes. Retrieved September 17 2025 from https:\/\/rustsec.org\/advisories\/RUSTSEC-2023-0054"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-17465-1_22"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","DOI":"10.1145\/2259016.2259050"},{"key":"e_1_3_1_50_2","doi-asserted-by":"publisher","DOI":"10.1145\/3133923"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2016.22"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","DOI":"10.1145\/1133981.1134027"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/1094811.1094817"},{"key":"e_1_3_1_54_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1986.6312929"},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1145\/2950290.2950296"},{"key":"e_1_3_1_56_2","doi-asserted-by":"publisher","DOI":"10.1145\/2892208.2892235"},{"key":"e_1_3_1_57_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2018.2869336"},{"key":"e_1_3_1_58_2","doi-asserted-by":"publisher","DOI":"10.1145\/2338965.2336784"},{"key":"e_1_3_1_59_2","unstructured":"The Kani Team. 2025. The Kani Rust Verifier. Retrieved September 17 2025 from https:\/\/github.com\/model-checking\/kani"},{"key":"e_1_3_1_60_2","unstructured":"The Rust Team. 2025. Meet Safe and Unsafe. Retrieved September 17 2025 from https:\/\/doc.rust-lang.org\/nomicon\/meet-safe-and-unsafe.html"},{"key":"e_1_3_1_61_2","unstructured":"TiKV. 2025. TiKV is a highly scalable low latency and easy to use key-value database. Retrieved September 17 2025 from https:\/\/tikv.org\/"},{"key":"e_1_3_1_62_2","doi-asserted-by":"publisher","unstructured":"Alexa VanHattum Daniel Schwartz-Narbonne Nathan Chong and Adrian Sampson. 2022. Verifying Dynamic Trait Objects in Rust. In 2022 IEEE\/ACM 44th International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP). 321\u2013330. doi:10.1145\/3510457.3513031","DOI":"10.1145\/3510457.3513031"},{"key":"e_1_3_1_63_2","doi-asserted-by":"publisher","DOI":"10.1145\/3466642"},{"key":"e_1_3_1_64_2","unstructured":"Anatoly Yakovenko. 2018. Solana: A new architecture for a high performance blockchain v0. 8.13."},{"key":"e_1_3_1_65_2","doi-asserted-by":"publisher","DOI":"10.1145\/2001420.2001440"},{"key":"e_1_3_1_66_2","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180178"},{"key":"e_1_3_1_67_2","doi-asserted-by":"publisher","DOI":"10.1145\/2660193.2660213"},{"key":"e_1_3_1_68_2","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328464"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3798266","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T11:22:15Z","timestamp":1790421735000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3798266"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,4,10]]},"references-count":67,"journal-issue":{"issue":"OOPSLA1","published-print":{"date-parts":[[2026,4,10]]}},"alternative-id":["10.1145\/3798266"],"URL":"https:\/\/doi.org\/10.1145\/3798266","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,4,10]]},"assertion":[{"value":"2025-10-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-04-10","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}