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

fix: voicevox_user_dict_add_wordがスタックを破壊するのを修正 #800

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Jun 14, 2024

内容

Rust 1.79に上げるとC APIのテストがSEGV(多分)することがわかりました。
https://github.com/VOICEVOX/voicevox_core/actions/runs/9505427859?pr=799

原因はvoicevox_user_dict_add_wordの実装です。起こっていることはおそらくこんな感じです。
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3d7d63d7dd6216fbb5172391013be984

voicevox_user_dict_add_wordは現在output_wordに書き込む方法を誤っており、16バイトではなく16×16=256バイトをmemmoveしてスタックを破壊しています。書き込む方法を正しくすることで修正を行います。

関連 Issue

その他

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!(よくわかってませんが、まあ)

@Hiroshiba Hiroshiba merged commit 7cdea5e into VOICEVOX:main Jun 15, 2024
31 checks passed
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.

3 participants