Commit 259845b
Exercise the malicious extensions check on Windows
The example built a gem on disk, and util_build_gem writes every entry of
spec.files, which includes spec.extensions. On Windows the extension name
embedding a newline cannot become a file name, so the example was skipped
and the check went uncovered. Build the installer from the spec in memory
with Installer.for_spec instead, matching the sibling non_string checks, so
verify_spec still runs before the spec is eval'd without the newline ever
reaching the disk.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 13b5af4 commit 259845b
1 file changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1901 | 1901 | | |
1902 | 1902 | | |
1903 | 1903 | | |
1904 | | - | |
1905 | | - | |
1906 | 1904 | | |
1907 | | - | |
1908 | | - | |
1909 | | - | |
1910 | | - | |
1911 | 1905 | | |
1912 | 1906 | | |
1913 | 1907 | | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
| 1908 | + | |
| 1909 | + | |
1917 | 1910 | | |
1918 | 1911 | | |
1919 | | - | |
1920 | 1912 | | |
1921 | 1913 | | |
1922 | 1914 | | |
| |||
0 commit comments