This commit is contained in:
Andras Schmelczer 2025-03-15 17:13:11 +00:00
parent 826e391f87
commit aad93fef84
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,4 @@
[toolchain]
channel = "nightly-2025-03-14"
targets = [ "x86_64-unknown-linux-gnu" ]
profile = "default"

View file

@ -66,7 +66,7 @@ pub fn merge_text(parent: &str, left: &str, right: &str) -> String {
pub fn is_binary(data: &[u8]) -> bool {
set_panic_hook();
if data.iter().any(|&b| b == 0) {
if data.contains(&0) {
// Even though the NUL character is valid in UTF-8, it's highly suspicious in
// human-readable text.
return true;

View file

@ -31,7 +31,7 @@ print_failed_log() {
# Only consider non-zero exit codes as failures
if [ $exit_code -ne 0 ]; then
echo "Process ${pids[$i-1]} failed with exit code $exit_code. Log file: $(pwd)/log_${i}.log"
echo "Process ${pids[$i-1]} failed with exit code $exit_code. Log file: $(pwd)/logs/log_${i}.log"
return 0
else
echo "Process ${pids[$i-1]} completed successfully with exit code 0"