Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyLogger的flash插件,异常掉电时可能会导致因地址不对齐而断言。 #162

Open
Sundy925 opened this issue Nov 3, 2024 · 0 comments

Comments

@Sundy925
Copy link

Sundy925 commented Nov 3, 2024

在ef_find_sec_using_end_addr函数有考虑掉电导致的4字节不对齐问题,但该代码并没有生效,(addr + sec_size - continue_ff) * 4 / 4 - 4不能保证地址有效对齐,这会导致find_start_and_end_addr函数中log_end_addr的值不对齐,从而导致ef_port_write中size % 4的断言被命中,导致程序运行异常。IMG_20241103_164655.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant