首页> 外国专利> Method of detecting stack overflows and processor for implementing such a method

Method of detecting stack overflows and processor for implementing such a method

机译:检测堆栈溢出的方法和用于实现这种方法的处理器

摘要

A method of detecting stack overflows includes the following steps: storing in at least one dedicated register at least one data item chosen from: a data item (SPHaut) indicating a maximum permitted value for a stack pointer, and a data item (SPBas) indicating a minimum permitted value for said stack pointer; effecting a comparison between a current value (SP) or past value (SPMin, SPMax) of said stack pointer and said data item or each of said data items; and generating a stack overflow exception if said comparison indicates that said current or past value of said stack pointer is greater than said maximum permitted value or less than said minimum permitted value. A processor for implementing such a method is also provided.
机译:一种检测堆栈溢出的方法,包括以下步骤:在至少一个专用寄存器中存储至少一个数据项,该数据项选自:指示栈指针的最大允许值的数据项(SPHaut)和指示以下项的数据项(SPBas):所述堆栈指针的最小允许值;在所述堆栈指针和所述数据项或每个所述数据项的当前值(SP)或过去值(SPMin,SPMax)之间进行比较;如果所述比较指示所述堆栈指针的所述当前或过去值大于所述最大允许值或小于所述最小允许值,则产生堆栈溢出异常。还提供了用于实现这种方法的处理器。

著录项

  • 公开/公告号US9513911B2

    专利类型

  • 公开/公告日2016-12-06

    原文格式PDF

  • 申请/专利权人 THALES;

    申请/专利号US201414550834

  • 申请日2014-11-21

  • 分类号G06F9/46;G06F9/30;G06F9/48;G06F9/50;G06F21/52;

  • 国家 US

  • 入库时间 2022-08-21 13:41:05

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号