Skip to content

fix:undefined behavior in write_as sprintf format specifiers#6

Open
D-RF-W wants to merge 1 commit into
archeryue:masterfrom
D-RF-W:fix-write-as-sprintf
Open

fix:undefined behavior in write_as sprintf format specifiers#6
D-RF-W wants to merge 1 commit into
archeryue:masterfrom
D-RF-W:fix-write-as-sprintf

Conversation

@D-RF-W

@D-RF-W D-RF-W commented Jun 8, 2026

Copy link
Copy Markdown

标题:fix: undefined behavior in write_as sprintf

修复 write_as() 函数中的格式化字符串类型不匹配问题:

  • 将 %lld 用于 int64_t 类型改为正确的类型转换
  • 将 ++code_dump 从 sprintf 参数中分离,避免未定义的求值顺序

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

Successfully merging this pull request may close these issues.

1 participant