首页> 外国专利> Limiting the effects of source code patches on corresponding native-code patches

Limiting the effects of source code patches on corresponding native-code patches

机译:限制源代码补丁对相应的本机代码补丁的影响

摘要

A code patching component may insert a binary patch into a native-code representation of a program during execution. Prior to inserting the binary patch, a patch code analysis tool may receive a source code patch for the program, and determine that applying the source code patch would change the binary for the program outside of the patched area (e.g., due to changes in the number of lines, changes in the file names or path information for source code files from which the program is built, or line directives that embed line numbers or file names in the binary for the patched program). The tool may modify the source code patch to limit its effects to the patch area by adding empty lines, merging of lines of code, or forcing a line number change. The tool may filter line directives to match previously embedded file name information.
机译:代码修补组件可以在执行期间将二进制补丁插入程序的本机代码表示中。在插入二进制补丁之前,补丁代码分析工具可以接收该程序的源代码补丁,并确定应用源代码补丁会在补丁区域之外更改该程序的二进制文件(例如,由于行数,用于生成程序的源代码文件的文件名或路径信息的更改,或将行号或文件名嵌入到已修补程序的二进制文件中的行指令)。该工具可以通过添加空行,合并代码行或强制更改行号来修改源代码补丁,以将其影响限制在补丁区域。该工具可以过滤行指令以匹配先前嵌入的文件名信息。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号