| Summary: | incorrect output with -i flag | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Sergey Bolshakov <sbolshakov> |
| Component: | xxd | Assignee: | Gleb F-Malinovskiy <glebfm> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | admsasha, glebfm, ldv |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
| URL: | https://github.com/vim/vim/issues/13876 | ||
$ date > file $ rpmquery xxd xxd-9.0.2136-alt1.aarch64 $ xxd -i file unsigned char file[] = { 0x54, 0x68, 0x75, 0x20, 0x4a, 0x61, 0x6e, 0x20, 0x32, 0x35, 0x20, 0x31, 0x32, 0x3a, 0x33, 0x31, 0x3a, 0x30, 0x33, 0x20, 0x4d, 0x53, 0x4b, 0x20, 0x32, 0x30, 0x32, 0x34, 0x0a }; unsigned int file_len = 29; (обновляемся ...) $ rpmquery xxd xxd-9.1.0050-alt1.aarch64 $ xxd -i file unsigned char file[] = { 0x54, 0x68, 0x75, 0x20, 0x4a, 0x61, 0x6e, 0x20, 0x32, 0x35, 0x20, 0x31, 0x32, 0x3a, 0x33, 0x31, 0x3a, 0x30, 0x33, 0x20, 0x4d, 0x53, 0x4b, 0x20, 0x32, 0x30, 0x32, 0x34, 0x0a }; size_t file_len = 29; как видно, file_len из unsigned_int стал size_t -- без включения stddef.h, и компиляция такого сгенерированного файла заканчивается неудачей.