US 11,868,465 B2
Binary image stack cookie protection
Adam John Boulton, Wirral (GB); and Benjamin John Godwood, Chipping Norton (GB)
Assigned to Blackberry Limited, Ontario (CA)
Filed by Blackberry Limited, Waterloo (CA)
Filed on Oct. 25, 2021, as Appl. No. 17/509,876.
Application 17/509,876 is a continuation of application No. 16/129,313, filed on Sep. 12, 2018, granted, now 11,157,611.
Claims priority of provisional application 62/612,972, filed on Jan. 2, 2018.
Prior Publication US 2022/0058260 A1, Feb. 24, 2022
Int. Cl. G06F 21/52 (2013.01); G06F 21/57 (2013.01); G06F 21/12 (2013.01); G06F 21/54 (2013.01); G06F 21/56 (2013.01); G06F 18/2431 (2023.01)
CPC G06F 21/52 (2013.01) [G06F 18/2431 (2023.01); G06F 21/125 (2013.01); G06F 21/54 (2013.01); G06F 21/566 (2013.01); G06F 21/577 (2013.01)] 30 Claims
OG exemplary drawing
 
1. A method comprising compiling a file, wherein compiling the file comprises:
identifying a function in the file;
evaluating a stack overflow risk associated with the function based on a binary static analysis that includes a stack cookie detector, the stack cookie detector receiving as input a location of the function and returning an indication of whether the function incorporates stack cookie protection; and
updating the function to incorporate the stack cookie protection based on the stack overflow risk, resulting in an updated function.