[stack protector] Fix a potential security bug in stack protector where the