Internal extractor of tar files from buffer #284
reviewdog [cpplint] report
reported by reviewdog 🐶
Findings (16)
src/muntar.c|176| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/muntar.c|191| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/muntar.c|197| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/muntar.c|214| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/muntar.c|220| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/muntar.c|316| Add #include for fprintf [build/include_what_you_use] [4]
src/muntar.h|24| #ifndef header guard has wrong style, please use: SRC_MUNTAR_H_ [build/header_guard] [5]
src/muntar.h|118| #endif line should be "#endif // SRC_MUNTAR_H_" [build/header_guard] [5]
src/tinf.h|24| #ifndef header guard has wrong style, please use: SRC_TINF_H_ [build/header_guard] [5]
src/tinf.h|56| #endif line should be "#endif // SRC_TINF_H_" [build/header_guard] [5]
src/tinfgzip.c|24| Include the directory when naming header files [build/include_subdir] [4]
src/tinflate.c|36| Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
src/tinflate.c|37| Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
src/tinflate.c|111| Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
src/tinflate.c|398| Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
src/tinflate.c|411| Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Filtered Findings (0)
Annotations
Check warning on line 176 in src/muntar.c
github-actions / cpplint
[cpplint] src/muntar.c#L176
Almost always, snprintf is better than strcpy [runtime/printf] [4]
Raw output
src/muntar.c:176: Almost always, snprintf is better than strcpy [runtime/printf] [4]
Check warning on line 191 in src/muntar.c
github-actions / cpplint
[cpplint] src/muntar.c#L191
Almost always, snprintf is better than strcpy [runtime/printf] [4]
Raw output
src/muntar.c:191: Almost always, snprintf is better than strcpy [runtime/printf] [4]
Check warning on line 197 in src/muntar.c
github-actions / cpplint
[cpplint] src/muntar.c#L197
Almost always, snprintf is better than strcpy [runtime/printf] [4]
Raw output
src/muntar.c:197: Almost always, snprintf is better than strcpy [runtime/printf] [4]
Check warning on line 214 in src/muntar.c
github-actions / cpplint
[cpplint] src/muntar.c#L214
Almost always, snprintf is better than strcpy [runtime/printf] [4]
Raw output
src/muntar.c:214: Almost always, snprintf is better than strcpy [runtime/printf] [4]
Check warning on line 220 in src/muntar.c
github-actions / cpplint
[cpplint] src/muntar.c#L220
Almost always, snprintf is better than strcpy [runtime/printf] [4]
Raw output
src/muntar.c:220: Almost always, snprintf is better than strcpy [runtime/printf] [4]
Check warning on line 316 in src/muntar.c
github-actions / cpplint
[cpplint] src/muntar.c#L316
Add #include <cstdio> for fprintf [build/include_what_you_use] [4]
Raw output
src/muntar.c:316: Add #include <cstdio> for fprintf [build/include_what_you_use] [4]
Check warning on line 24 in src/muntar.h
github-actions / cpplint
[cpplint] src/muntar.h#L24
#ifndef header guard has wrong style, please use: SRC_MUNTAR_H_ [build/header_guard] [5]
Raw output
src/muntar.h:24: #ifndef header guard has wrong style, please use: SRC_MUNTAR_H_ [build/header_guard] [5]
Check warning on line 118 in src/muntar.h
github-actions / cpplint
[cpplint] src/muntar.h#L118
#endif line should be "#endif // SRC_MUNTAR_H_" [build/header_guard] [5]
Raw output
src/muntar.h:118: #endif line should be "#endif // SRC_MUNTAR_H_" [build/header_guard] [5]
Check warning on line 24 in src/tinf.h
github-actions / cpplint
[cpplint] src/tinf.h#L24
#ifndef header guard has wrong style, please use: SRC_TINF_H_ [build/header_guard] [5]
Raw output
src/tinf.h:24: #ifndef header guard has wrong style, please use: SRC_TINF_H_ [build/header_guard] [5]
Check warning on line 56 in src/tinf.h
github-actions / cpplint
[cpplint] src/tinf.h#L56
#endif line should be "#endif // SRC_TINF_H_" [build/header_guard] [5]
Raw output
src/tinf.h:56: #endif line should be "#endif // SRC_TINF_H_" [build/header_guard] [5]
Check warning on line 24 in src/tinfgzip.c
github-actions / cpplint
[cpplint] src/tinfgzip.c#L24
Include the directory when naming header files [build/include_subdir] [4]
Raw output
src/tinfgzip.c:24: Include the directory when naming header files [build/include_subdir] [4]
Check warning on line 36 in src/tinflate.c
github-actions / cpplint
[cpplint] src/tinflate.c#L36
Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Raw output
src/tinflate.c:36: Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Check warning on line 37 in src/tinflate.c
github-actions / cpplint
[cpplint] src/tinflate.c#L37
Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Raw output
src/tinflate.c:37: Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Check warning on line 111 in src/tinflate.c
github-actions / cpplint
[cpplint] src/tinflate.c#L111
Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Raw output
src/tinflate.c:111: Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Check warning on line 398 in src/tinflate.c
github-actions / cpplint
[cpplint] src/tinflate.c#L398
Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Raw output
src/tinflate.c:398: Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Check warning on line 411 in src/tinflate.c
github-actions / cpplint
[cpplint] src/tinflate.c#L411
Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]
Raw output
src/tinflate.c:411: Use int16_t/int64_t/etc, rather than the C type short [runtime/int] [4]