METHOD FOR DETECTING MEMORY SAFETY BUG AND ELECTRONIC DEVICE SUPPORTING THE SAME

    公开(公告)号:US20250094588A1

    公开(公告)日:2025-03-20

    申请号:US18896018

    申请日:2024-09-25

    Abstract: A method for detecting a memory safety bug and an electronic device supporting the same are provided. The electronic device supporting multiple domains includes memory storing one or more computer programs, and one or more processors communicatively coupled to the memory and operable in a first domain and a second domain, wherein The one or more computer programs include computer-executable instructions that, when executed by the one or more processors individually or collectively, cause the electronic device to detect a shared memory use request by the first domain or the second domain, allocate shared memory for communication between multiple domains including the first domain and the second domain based on a memory area designated in the memory, based on the shared memory use request, register a tag for the shared memory in a first memory area of the first domain and a second memory area of the second domain, and detect a memory safety bug for the shared memory shared between the first domain and the second domain, based on the tag.

Patent Agency Ranking