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

CMemory変更のデグレ対策 #1629

Conversation

berryzplus
Copy link
Contributor

@berryzplus berryzplus commented Apr 17, 2021

PR の目的

タイトル通りです。

カテゴリ

  • 不具合修正

PR の背景

#1618 で行ったメモリバッファの変更で、既存の挙動を変更する修正を入れてしまっていました。
発生した不具合は #1626 で「SAKURA EDITORでGrep」が機能しなくなっています。

PR のメリット

#1626 が解消します。

PR のデメリット (トレードオフとかあれば)

とくにありません。

仕様・動作説明

コミットとソースのコメントを確認してください。

位置づけ的には、既存コードを壊さないために「不要な処理」をあえて入れておく、になります。

PR の影響範囲

#1618 と同じです。

テスト内容

VisualStudioのデバッグ設定で引数に以下を設定してデバッグ起動します。

-GREPDLG -GREPMODE -GFOLDER="$(ProjectDir)" -GOPT="SP" -GCODE=99

修正前はstrGrepKey(Grep検索の検索キー)を設定しようとしてVAが発生します。
修正後は問題なく続行できるように戻ります。

関連 issue, PR

#1618
close #1626
close #1628

参考資料

#1618変更前のコードでは、サイズゼロのインスタンスをコピーした場合にメモリが確保されていたのが、#1618の変更で確保されなくなってしまった。処理内容的には後者が正しいが、#1626の不具合が発生したので暫定的に元に戻す。
@sonarcloud
Copy link

sonarcloud bot commented Apr 17, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@berryzplus berryzplus marked this pull request as ready for review April 17, 2021 05:45
@AppVeyorBot
Copy link

@sanomari sanomari added 🐛bug🦋 ■バグ修正(Something isn't working) 💩degradation🧻🚽 デグレ (前に動いていた機能が動かなくなった) labels Apr 17, 2021
@berryzplus
Copy link
Contributor Author

レビューありがとうございます。マージしちゃいます。

@berryzplus berryzplus merged commit 53b9e36 into sakura-editor:master Apr 17, 2021
@berryzplus berryzplus deleted the feature/workaround_for_cmemory_degration branch April 17, 2021 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug🦋 ■バグ修正(Something isn't working) 💩degradation🧻🚽 デグレ (前に動いていた機能が動かなくなった)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

「SAKURA EDITORでGrep」が機能しません。
3 participants