chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.8k stars 421 forks source link

Fix compiler driver bug reading long dependency paths #26310

Open riftEmber opened 5 hours ago

riftEmber commented 5 hours ago

Fix a bug causing the compiler driver to crash when working with dependency paths longer than 4096 characters.

Fixed by reading with std::getline which has no line length limit, rather than fgets which requires a (finite) buffer.

Resolves https://github.com/chapel-lang/chapel/issues/26261.

[reviewer info placeholder]

Testing: