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

暗黙的 cast バグを検出する FrontendAction の実装 #28

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

暗黙的 cast バグを検出する FrontendAction の実装 #28

Ran350 opened this issue Jan 8, 2023 · 1 comment
Labels
タイプ:タスク type : task 機能:暗黙的 cast バグ 暗黙的なダウンキャストによるバグ Epic

Comments

@Ran350
Copy link
Member

Ran350 commented Jan 8, 2023

概要

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

入力ファイル例

struct stat stat_buf;
if (stat(file_path, &stat_buf) == 0) {
	time_t t = stat_buf.st_atime;
	int overflowed = t - (t % 3600);
}

想定出力

test.c:3:9 : warning : Because of Y2K38, when the time_t type value is cast as an int, the result may overflow.
int overflowed = t - (t % 3600);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

TODO

@Ran350 Ran350 added タイプ:タスク type : task Epic 機能:暗黙的 cast バグ 暗黙的なダウンキャストによるバグ labels Jan 8, 2023
@Ran350 Ran350 changed the title 暗黙的 cast バグを検出する PluginASTAction の実装 暗黙的 cast バグを検出する 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
タイプ:タスク type : task 機能:暗黙的 cast バグ 暗黙的なダウンキャストによるバグ Epic
Projects
None yet
Development

No branches or pull requests

1 participant