Patent ID: 11868466
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 13:
14. A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause the processor to:
color with an inaccessible color value a first memory area associated with a first function;
branch to a second function;
color with a second color value a second memory area associated with the second function;
operate on the second memory area upon branching to the second function;
color with the inaccessible color value the second memory area;
return to the first function; and
color with a first color value the first memory area,, wherein each of the first color value, the second color value, and the inaccessible color value comprises distinct color values, and, wherein coloring a memory area comprises:
branching to a coloring routine, wherein the coloring routine comprises a single basic block that comprises and begins with a branch target instruction and does not comprise another branch instruction;
identifying and authorizing a calling routine;
coloring with a hardcoded color value the memory area associated with the calling routine, wherein the calling routine comprises code including the hardcoded color value that is preset at code generation time and that is applied by the coloring routine to the associated memory area; and
returning to the calling routine.