Skip to content

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
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