Skip to content

Update shc.c

Update shc.c #31

Triggered via push August 11, 2024 20:42
Status Failure
Total duration 54s
Artifacts 1

pre-commit.yml

on: push
pre-commit
46s
pre-commit
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 11 warnings, and 3 notices
pre-commit: config/missing#L67
"esac" before "case"
pre-commit: config/missing#L1
indent/outdent mismatch: 1.
pre-commit: ChangeLog#L125
permision ==> permission
pre-commit: ChangeLog#L126
permision ==> permission
pre-commit: ChangeLog#L230
encripted ==> encrypted
pre-commit: ChangeLog#L231
comand ==> command
pre-commit: ChangeLog#L232
adventage ==> advantage
pre-commit: ChangeLog#L233
encripted ==> encrypted
pre-commit: ChangeLog#L236
cheksums ==> checksums
pre-commit: ChangeLog#L238
excuting ==> executing
pre-commit
Process completed with exit code 1.
pre-commit: src/shc.c#L1221
(invalidFunctionArg): Either the condition 'msg1_z>=0' is redundant or realloc() argument nr 2 can have invalid value. The value is -1 but the valid values are '0:'.
pre-commit: src/shc.c#L1030
(invalidscanf): sscanf() without field width limits can crash with huge input data.
pre-commit: src/shc.c#L1169
(zerodivcond): Either the condition 'pswd_z>=0' is redundant or there is division by zero at line 1169.
pre-commit: src/shc.c#L783
Use int16/int64/etc, rather than the C type long [runtime/int]
pre-commit: src/shc.c#L930
Using C-style cast. Use static_cast<int>(...) instead [readability/casting]
pre-commit: src/shc.c#L1016
Using C-style cast. Use static_cast<int>(...) instead [readability/casting]
pre-commit: src/shc.c#L1038
Using C-style cast. Use static_cast<int>(...) instead [readability/casting]
pre-commit: src/shc.c#L1121
Consider using rand_r(...) instead of rand(...) for improved thread safety. [runtime/threadsafe_fn]
pre-commit: src/shc.c#L1130
Using C-style cast. Use static_cast<char>(...) instead [readability/casting]
pre-commit: src/shc.c#L1140
Using C-style cast. Use static_cast<int>(...) instead [readability/casting]
pre-commit
Cache save failed.
pre-commit: src/shc.c#L944
(variableScope): The scope of the variable 'tmp' can be reduced.
pre-commit: src/shc.c#L1080
(shadowVariable): Local variable 'text' shadows outer variable
pre-commit: src/shc.c#L1211
(shadowVariable): Local variable 'indx' shadows outer variable

Artifacts

Produced during runtime
Name Size
precommit-logs Expired
23.6 KB