Commit 4879264
committed
[2/2]Fixes char to unsigned char for byte representation
The forcing of signed char type was introduced by 3fb3bb5d38r,
"configure: force 'char' type to be signed (#4025)".
Thus at xlators/features/compress/src/cdc-helper.c was found the
use of a char type to represent bytes, when it should be using an unsigned
type to avoid sign extension and overflow.
This commit changes the variable "gzip_header" to "unsigned" type.
Signed-off-by: Thales Antunes de Oliveira Barretto <thales.barretto.git@gmail.com>
# xlators/features/compress/src/cdc-helper.c | 4 ++--
# 1 file changed, 2 insertions(+), 2 deletions(-)
# xlators/features/compress/src/cdc-helper.c | 4 ++--
# 1 file changed, 2 insertions(+), 2 deletions(-)
# xlators/features/compress/src/cdc-helper.c | 4 ++--
# 1 file changed, 2 insertions(+), 2 deletions(-)1 parent aa78994 commit 4879264
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments