gss: Fix sign extension bug (from be708ca3cf
)
When unsigned char values are shifted, they are promoted to int (unless
sizeof(int) == sizeof(char)). This means that the change in be708ca3cf
ultimately leads to a sign extension bug.
This commit is contained in:
@@ -171,7 +171,8 @@ import_export_name (OM_uint32 *minor_status,
|
||||
{
|
||||
CompositePrincipal *composite;
|
||||
unsigned char *p;
|
||||
size_t length, sz;
|
||||
uint32_t length;
|
||||
size_t sz;
|
||||
OM_uint32 ret;
|
||||
int is_composite;
|
||||
char *name;
|
||||
|
Reference in New Issue
Block a user