{"id":17502647,"url":"https://github.com/dacap/safedlgs","last_synced_at":"2026-04-13T08:31:04.133Z","repository":{"id":257992784,"uuid":"873254398","full_name":"dacap/safedlgs","owner":"dacap","description":"Proof of concept to avoid random crashes from the Windows file dialog","archived":false,"fork":false,"pushed_at":"2024-11-25T23:02:12.000Z","size":57,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-12T06:58:11.936Z","etag":null,"topics":["crash","file-dialog","win32","windows"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dacap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T21:19:32.000Z","updated_at":"2025-12-27T11:41:56.000Z","dependencies_parsed_at":"2024-10-17T07:58:42.979Z","dependency_job_id":null,"html_url":"https://github.com/dacap/safedlgs","commit_stats":null,"previous_names":["dacap/safedlgs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dacap/safedlgs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fsafedlgs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fsafedlgs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fsafedlgs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fsafedlgs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacap","download_url":"https://codeload.github.com/dacap/safedlgs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fsafedlgs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T06:26:45.479Z","status":"ssl_error","status_checked_at":"2026-04-13T06:26:44.645Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crash","file-dialog","win32","windows"],"created_at":"2024-10-19T21:15:10.139Z","updated_at":"2026-04-13T08:31:04.116Z","avatar_url":"https://github.com/dacap.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# safedlgs\n\n\u003e This is a proof of concept. Use this code as [you wish](LICENSE.txt).\n\nThere is no safe way to use the standard file dialog to open/save\nfiles on Windows. What does this mean? It looks like there are several\n`comctl32.dll` implementations, and some third-party Windows IME\n(Input Method Editors) that can crash your application just by using\nthe standard file dialog from Windows.\n\nAs the file dialog contains a `EDIT` control, it opens a full range of\npossible bugs/crashes when a third-party IME is configured. Which\nmeans that just opening the file selector is a potential source of\ncrashes for your application.\n\nOne possible way to fix this is using a background process just to\nopen the file dialog. If the process crashes, we can reopen it, even\nusing the last location where the crash was produced.\n\n## Demo\n\nThis project includes the following programs:\n\n* `dlgs.exe`: Shows the native Windows file dialog using the\n  [IFileDialog](https://learn.microsoft.com/en-us/windows/win32/shell/common-file-dialog)\n  interface. This process can crash. Each time the user changes to\n  other folder, it prints that folder to STDOUT, so we can re-open the\n  file dialog in the last location.\n* `test.exe`: Wrapper that (re-)executes `dlgs.exe`. This process\n  shouldn't crash, if it detects that `dlgs.exe` crashed, it just\n  re-open it in the last visited location.\n\nThe `dlgs.exe` will show the native file dialog with an extra \"Crash\nProcess\" button just to test how it works in case of crash:\n\n![Screen Shot](images/screenshot.png)\n\n## Crashes\n\nYou can find some stack traces in the [CRASHES](CRASHES.md) file\nabout real world Windows and IME bugs out there.\n\n## License\n\nThis project is released under the terms of the MIT license. Read\n[LICENSE](LICENSE.txt) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Fsafedlgs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacap%2Fsafedlgs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Fsafedlgs/lists"}