10 Star 71 Fork 133

OpenHarmony/third_party_bounds_checking_function

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MulanPSL-2.0

libboundscheck

介绍

  • 遵循C11 Annex K (Bounds-checking interfaces)的标准,选取并实现了常见的内存/字符串操作类的函数,如memcpy_s、strcpy_s等函数。
  • 未来将分析C11 Annex K中的其他标准函数,如果有必要,将在该组织中实现。
  • 处理边界检查函数的版本发布、更新以及维护。

函数清单

  • memcpy_s
  • wmemcpy_s
  • memmove_s
  • wmemmove_s
  • memset_s
  • strcpy_s
  • wcscpy_s
  • strncpy_s
  • wcsncpy_s
  • strcat_s
  • wcscat_s
  • strncat_s
  • wcsncat_s
  • strtok_s
  • wcstok_s
  • sprintf_s
  • swprintf_s
  • vsprintf_s
  • vswprintf_s
  • snprintf_s
  • vsnprintf_s
  • scanf_s
  • wscanf_s
  • vscanf_s
  • vwscanf_s
  • fscanf_s
  • fwscanf_s
  • vfscanf_s
  • vfwscanf_s
  • sscanf_s
  • swscanf_s
  • vsscanf_s
  • vswscanf_s
  • gets_s

构建方法

运行命令

make CC=gcc

生成的动态库libboundscheck.so存放在新创建的lib目录下。

使用方法

  1. 将构建生成的动态库libboundscheck.so放到库文件目录下,例如:"/usr/local/lib/"。

  2. 为使用libboundscheck,编译程序时需增加编译参数"-lboundscheck",例如:"gcc -g -o test test.c -lboundscheck"。

空文件

简介

Third-party open-source software bounds_checking_function | 三方开源软件bounds_checking_function 展开 收起
取消

发行版 (1)

全部
5年前

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/third_party_bounds_checking_function.git
git@gitee.com:openharmony/third_party_bounds_checking_function.git
openharmony
third_party_bounds_checking_function
third_party_bounds_checking_function
OpenHarmony-v5.0.2-Release

搜索帮助