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

member access within misaligned address #1629

Closed
reggae5821 opened this issue Jan 14, 2024 · 1 comment
Closed

member access within misaligned address #1629

reggae5821 opened this issue Jan 14, 2024 · 1 comment

Comments

@reggae5821
Copy link

问题现象
简要描述问题出现的现象

struct sockaddr_storage *addr_store = (struct sockaddr_storage *)addr;

sockaddr_storage* need a 8-byte aligned address, but sockaddr* addr is not at the 8-byte aligned address, which can cause a ub.

image

运行环境

  1. 固件型号

  2. 运营商

  3. smartdns来源以及版本

  4. 涉及的配置(注意去除个人相关信息)

重现步骤

  1. 上游DNS配置。

  2. 访问的域名。

信息收集

  1. 将/var/log/smrtdns.log日志作为附件上传(注意去除个人相关信息)。
  2. 如进程异常,请将coredump功能开启,上传coredump信息文件,同时上传配套的smartdns进程文件。
    在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件
    coredump文件在/tmp目录下
@pymumu
Copy link
Owner

pymumu commented Jan 15, 2024

done

@pymumu pymumu closed this as completed Jan 15, 2024
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

2 participants