armink-rtt-pkgs / easylogger Goto Github PK
View Code? Open in Web Editor NEWA ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库
License: MIT License
A ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库
License: MIT License
ef_log.c
文件内的 log_index2addr
函数使用存在隐藏风险,建议可以优化
当给 log_index2addr
传入的参数index
的值 大于 2倍LOG_AREA_SIZE
时,回导致计算出来的flash物理地址错误
建议将返回值计算
return log_start_addr + index + header_total_offset - LOG_AREA_SIZE;
修改为
return (log_start_addr + index + header_total_offse)t % LOG_AREA_SIZE;
尽管此函数仅由ef_log_read
调用,且ef_log_read
函数内做了EF_ASSERT(index < cur_using_size);
判断,目前整体是安全的,但是此函数是不安全的,为防止后续其他函数调用是引入风险,建议修改
EasyFlash 仓库下的easyflash版本已修复诸多问题,可否把修复的问题同步一下,否则不太感贸然使用此仓库下代码
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.