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

write 系バグを検出する FrontendAction の実装 #29

Closed
1 of 4 tasks
Ran350 opened this issue Jan 8, 2023 · 1 comment
Closed
1 of 4 tasks

write 系バグを検出する FrontendAction の実装 #29

Ran350 opened this issue Jan 8, 2023 · 1 comment
Labels
Epic タイプ:タスク type : task 機能:write 系バグ ファイルタイムスタンプへの書き込みによるバグ

Comments

@Ran350
Copy link
Member

Ran350 commented Jan 8, 2023

概要

明示的なダウンキャストによるバグ の検出する PluginASTAction を実装する

入力ファイル例

struct utimbuf ubuf = { actime, modtime };
utime("a.txt", &ubuf);
utimes("a.txt", &ubuf);

想定出力

test.c:2:1 : warning : Because of Y2K38, when the timestamp in `ubuf` is greater than 2^31-1, the timestamp of the file in the file system overflows
utime("a.txt", &ubuf);
^^^^^

test.c:3:1 : warning : Because of Y2K38, when the timestamp in `ubuf` is greater than 2^31-1, the timestamp of the file in the file system overflows
utimes("a.txt", &ubuf);
^^^^^

TODO

@Ran350 Ran350 added タイプ:タスク type : task Epic 機能:write 系バグ ファイルタイムスタンプへの書き込みによるバグ labels Jan 8, 2023
@Ran350 Ran350 changed the title write 系バグを検出する PluginASTAction の実装 write 系バグを検出する FrontendAction の実装 Jan 8, 2023
@Ran350
Copy link
Member Author

Ran350 commented May 17, 2023

実装完了

@Ran350 Ran350 closed this as completed May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic タイプ:タスク type : task 機能:write 系バグ ファイルタイムスタンプへの書き込みによるバグ
Projects
None yet
Development

No branches or pull requests

1 participant