US 12,423,077 B2
Modifying bytecode to return an address associated with a target function
Stephane Epardaud, Peille (FR); and Georgios Andrianakis, Attica (GR)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by RED HAT, INC., Raleigh, NC (US)
Filed on Dec. 14, 2022, as Appl. No. 18/080,915.
Claims priority of application No. 0220101004 (GR), filed on Dec. 5, 2022.
Prior Publication US 2024/0184553 A1, Jun. 6, 2024
Int. Cl. G06F 8/41 (2018.01); G06F 8/30 (2018.01)
CPC G06F 8/447 (2013.01) [G06F 8/30 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A non-transitory computer-readable medium comprising program code that is executable by one or more processors for causing the one or more processors to:
generate bytecode by compiling source code into the bytecode, wherein the source code excludes a supplemental function;
analyze the bytecode to identify a location of a first bytecode segment that is intended to return an address for a target function; and
modify the bytecode to replace the first bytecode segment with a second bytecode segment at the location, the second bytecode segment being configured to call the supplemental function that is executable to return the address for the target function.