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;

展开阅读全文
相关资源
猜你喜欢
  • EN 16712-3-2015 en Portable equipment for projecting extinguishing agents supplied by fire fighting pumps - Portable foam equipment - Part 3 Low and medium expansion hand-held foam.pdf EN 16712-3-2015 en Portable equipment for projecting extinguishing agents supplied by fire fighting pumps - Portable foam equipment - Part 3 Low and medium expansion hand-held foam.pdf
  • EN 16713-1-2016 en Domestic swimming pools - Water systems - Part 1 Filtration systems - Requirements and test methods《家用游泳池 水 第1部分 过滤系统 要求和测试方法》.pdf EN 16713-1-2016 en Domestic swimming pools - Water systems - Part 1 Filtration systems - Requirements and test methods《家用游泳池 水 第1部分 过滤系统 要求和测试方法》.pdf
  • EN 16713-2-2016 en Domestic swimming pools - Water systems - Part 2 Circulation systems - Requirements and test methods《家用游泳池 水 第2部分 循环系统 要求和测试方法》.pdf EN 16713-2-2016 en Domestic swimming pools - Water systems - Part 2 Circulation systems - Requirements and test methods《家用游泳池 水 第2部分 循环系统 要求和测试方法》.pdf
  • EN 16713-3-2016 en Domestic swimming pools - Water systems - Part 3 Water treatment - Requirements《家用游泳池 水 第3部分 水处理 要求》.pdf EN 16713-3-2016 en Domestic swimming pools - Water systems - Part 3 Water treatment - Requirements《家用游泳池 水 第3部分 水处理 要求》.pdf
  • EN 16714-1-2016 en Non-destructive testing - Thermographic testing - Part 1 General principles《无损检验-温度记录试验-第1部分 总则》.pdf EN 16714-1-2016 en Non-destructive testing - Thermographic testing - Part 1 General principles《无损检验-温度记录试验-第1部分 总则》.pdf
  • EN 16714-2-2016 en Non-destructive testing - Thermographic testing - Part 2 Equipment《无损检验-温度记录试验-第2部分 设备》.pdf EN 16714-2-2016 en Non-destructive testing - Thermographic testing - Part 2 Equipment《无损检验-温度记录试验-第2部分 设备》.pdf
  • EN 16714-3-2016 en Non-destructive testing - Thermographic testing - Part 3 Terms and definitions《无损检验-温度记录试验-第3部分 术语和定义》.pdf EN 16714-3-2016 en Non-destructive testing - Thermographic testing - Part 3 Terms and definitions《无损检验-温度记录试验-第3部分 术语和定义》.pdf
  • EN 16715-2015 en Liquid petroleum products - Determination of ignition delay and derived cetane number (DCN) of middle distillate fuels - Ignition delay and combustion delay determ.pdf EN 16715-2015 en Liquid petroleum products - Determination of ignition delay and derived cetane number (DCN) of middle distillate fuels - Ignition delay and combustion delay determ.pdf
  • EN 16716-2017 en Mountaineering equipment - Avalanche airbag systems - Safety requirements and test methods《登山装备-雪崩安全气囊系统-安全要求和试验方法》.pdf EN 16716-2017 en Mountaineering equipment - Avalanche airbag systems - Safety requirements and test methods《登山装备-雪崩安全气囊系统-安全要求和试验方法》.pdf
  • 相关搜索

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

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