Electronic apparatus and control method thereof
AssigneeSamsung Electronics Co., Ltd.
InventorsSungbae YOO, Seolheui KIM
Life of this patent
Estimating the term…
Abstract
An electronic apparatus and a control method of the electronic apparatus is provided. The method includes acquiring source code written in a programing language, identifying a structure including a function pointer from the source code, identifying a plurality of initialized variables as a plurality first variables among variables of the function pointer included in the identified structure, and modifying the source code by changing an indirect call using an unmodifiable variable among the plurality of first variables to a direct call.
Claims16
A control method of an electronic apparatus, the method comprising:
- acquiring a source code written in a programing language;
- identifying a structure including a function pointer from the acquired source code;
- identifying a plurality of initialized variables including a portion where the function pointer is initialized among variables of the function pointer included in the identified structure;
- and
- modifying the source code by changing an indirect call which uses an unmodifiable variable among the identified plurality of variables to a direct call.
An electronic apparatus comprising:
- a memory configured to store at least one instruction;
- and
- a processor configured to acquire source code written in a programming language by executing the instruction,
- identify a structure including a function pointer from the acquired source code,
- identify a plurality of initialized variables including a portion where the function pointer is initialized among variables of the function pointer included in the identified structure, and
- modify the source code by changing an indirect call which uses an unmodifiable variable among the identified plurality of variables to a direct call.
Dependencies are inferred from the claim text.