logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Huawei C 安全函数库

为安全C库函数是华为公司提供的一个专门针对C语言开发者的安全代码库,该库遵循C11标准中的Annex K条款,即边界检查接口(Bounds-checking interfaces)。这个代码库的主要目的是为了解决C语言传统函数如memcpy、strcpy等在运行时可能出现的内存越界问题,这类问题在常规编程中容易导致缓冲区溢出,进而可能被利用为安全漏洞。

文章图片
#华为#c语言#安全
C++手撕strcpy、strncpy、strcat、strncat、memcpy、memset、memmove函数

CommonFunction.h#include <cstdio>#include <cassert>#include <cstring>#include <iostream>#include <string>char* WeStrcpy(char* dest_buf, const char* src_buf);char* WeStrnc

文章图片
#c++#c语言#开发语言
到底了