ISO IEC TS 17961 CORR 1-2016 Information technology - Programming languages their environments and system software interfaces - C secure coding rules Technical .pdf

上传人:ideacase155 文档编号:1257456 上传时间:2019-09-02 格式:PDF 页数:3 大小:511KB
下载 相关 举报
ISO IEC TS 17961 CORR 1-2016 Information technology - Programming languages their environments and system software interfaces - C secure coding rules Technical .pdf_第1页
第1页 / 共3页
ISO IEC TS 17961 CORR 1-2016 Information technology - Programming languages their environments and system software interfaces - C secure coding rules Technical .pdf_第2页
第2页 / 共3页
ISO IEC TS 17961 CORR 1-2016 Information technology - Programming languages their environments and system software interfaces - C secure coding rules Technical .pdf_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、 TECHNICAL SPECIFICATION ISO/IEC TS 17961:2013 TECHNICAL CORRIGENDUM 1 Published 2016-08-15 INTERNATIONAL ORGANIZATION FOR STANDARDIZATION ORGANISATION INTERNATIONALE DE NORMALISATION INTERNATIONAL ELECTROTECHNICAL COMMISSION COMMISSION LECTROTECHNIQUE INTERNATIONALEInformation technology Programmin

2、g languages, their environments and system software interfaces C secure coding rules TECHNICAL CORRIGENDUM 1 Technologies de linformation Langages de programmation, leur environnement et interfaces des logiciels de systmes Rgles de programmation scurise en C RECTIFICATIF TECHNIQUE 1 Technical Corrig

3、endum 1 to ISO/IEC TS 17961:2013 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environments and system software interfaces. ICS 35.060 Ref. No. ISO/IEC TS 17961:2013/Cor.1:2016(E) ISO/IEC 2016 All rights reserved Pub

4、lished in Switzerland ISO/IEC TS 17961:2013/Cor.1:2016(E) 2 ISO/IEC 2016 All rights reserved In rule 5.21, Rule section, replace with A call to a standard memory allocation function taking a size integer argument n and presumed to be intended for type T * shall be diagnosed when n sizeof(T) . A call

5、 to a standard memory allocation function taking a size integer argument n and presumed to be intended for type T * shall be regarded as an array of N elements, where N = n / sizeof(T) . Any allocation where N = 0 shall be diagnosed (i.e. where n sizeof(T). Also, any attempt to use this array in a m

6、anner that causes its array bound to be violated shall be diagnosed. In rule 5.21, replace EXAMPLE In this noncompliant example, a diagnostic is required because the value of n that is used in the malloc() call has been possibly miscalculated. wchar_t *f1(void) const wchar_t *p = L“Hello, World!“; c

7、onst size_t n = sizeof(p) * (wcslen(p) + 1); wchar_t *q = (wchar_t *)malloc(n); / diagnostic required /* . */ return q; with EXAMPLE 1 struct S1 unsigned int x; float y; struct S1 *z; ; struct S1 *f1(void) struct S1 *p = (struct S1*)malloc(sizeof(p); / diagnostic required return p; ISO/IEC TS 17961:2013/Cor.1:2016(E) ISO/IEC 2016 All rights reserved 3 EXAMPLE 2 wchar_t *f2(void) const wchar_t *p = L“Hello, World!“; const size_t n = (wcslen(p) + 1); wchar_t *q = (wchar_t *)malloc(n); wcscpy(q, p); / diagnostic required return q;

展开阅读全文
相关资源
猜你喜欢
  • BS ISO 603-1-1999 en_2139  Bonded abrasive products - Dimensions - Grinding wheels for external cylindrical grinding between centres《粘合磨料产品.尺寸.定心外圆磨砂轮》.pdf BS ISO 603-1-1999 en_2139 Bonded abrasive products - Dimensions - Grinding wheels for external cylindrical grinding between centres《粘合磨料产品.尺寸.定心外圆磨砂轮》.pdf
  • BS ISO 603-10-1999 en_6921  Bonded abrasive products - Dimensions - Stones for honing and superfinishing《粘合磨料产品.尺寸.珩磨和超精研磨石》.pdf BS ISO 603-10-1999 en_6921 Bonded abrasive products - Dimensions - Stones for honing and superfinishing《粘合磨料产品.尺寸.珩磨和超精研磨石》.pdf
  • BS ISO 603-11-1999 en_4002  Bonded abrasive products - Dimensions - Hand finishing sticks《粘合磨料产品.尺寸.手工精研磨条》.pdf BS ISO 603-11-1999 en_4002 Bonded abrasive products - Dimensions - Hand finishing sticks《粘合磨料产品.尺寸.手工精研磨条》.pdf
  • BS ISO 603-12-1999 en_3554  Bonded abrasive products - Dimensions - Grinding wheels for deburring and fettling on a straight grinder《粘合磨料产品.尺寸.在卧式砂轮机上清理和去毛刺用砂轮》.pdf BS ISO 603-12-1999 en_3554 Bonded abrasive products - Dimensions - Grinding wheels for deburring and fettling on a straight grinder《粘合磨料产品.尺寸.在卧式砂轮机上清理和去毛刺用砂轮》.pdf
  • BS ISO 603-13-1999 en_4143  Bonded abrasive products - Dimensions - Grinding wheels for deburring and fettling on a vertical grinder《粘合磨料产品.尺寸.立式磨床去除和整修毛刺用砂轮》.pdf BS ISO 603-13-1999 en_4143 Bonded abrasive products - Dimensions - Grinding wheels for deburring and fettling on a vertical grinder《粘合磨料产品.尺寸.立式磨床去除和整修毛刺用砂轮》.pdf
  • BS ISO 603-14-1999 en_1223  Bonded abrasive products - Dimensions - Grinding wheels for deburring and fettling snagging on an angle grinder《粘合磨料产品.尺寸.在角度式砂轮机上清理和去毛刺用砂轮》.pdf BS ISO 603-14-1999 en_1223 Bonded abrasive products - Dimensions - Grinding wheels for deburring and fettling snagging on an angle grinder《粘合磨料产品.尺寸.在角度式砂轮机上清理和去毛刺用砂轮》.pdf
  • BS ISO 603-15-1999 en_1958  Bonded abrasive products - Dimensions - Grinding wheels for cutting-off on stationary or mobile cutting-off machines《粘合磨料产品.尺寸.固定或移动式切削机上的切削砂轮》.pdf BS ISO 603-15-1999 en_1958 Bonded abrasive products - Dimensions - Grinding wheels for cutting-off on stationary or mobile cutting-off machines《粘合磨料产品.尺寸.固定或移动式切削机上的切削砂轮》.pdf
  • BS ISO 603-16-1999 en_1982  Bonded abrasive products - Dimensions - Grinding wheels for cutting-off on hand-held power tools《粘合磨料产品.尺寸.手持动力工具的切削砂轮》.pdf BS ISO 603-16-1999 en_1982 Bonded abrasive products - Dimensions - Grinding wheels for cutting-off on hand-held power tools《粘合磨料产品.尺寸.手持动力工具的切削砂轮》.pdf
  • BS ISO 603-17-2014 en_7324  Bonded abrasive products Dimensions Spindle mounted wheels (ISO type 52)《粘结磨料产品 尺寸 主轴磨头 (ISO 52型)》.pdf BS ISO 603-17-2014 en_7324 Bonded abrasive products Dimensions Spindle mounted wheels (ISO type 52)《粘结磨料产品 尺寸 主轴磨头 (ISO 52型)》.pdf
  • 相关搜索

    当前位置:首页 > 标准规范 > 国际标准 > 其他

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1