mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Short term fix for ITS#1960
Code really should be changed to write only 'unsigned int's with simple sanity check.
This commit is contained in:
parent
2168be2b4a
commit
b6bbc69e2f
@ -30,6 +30,7 @@
|
|||||||
#include "ldap_config.h"
|
#include "ldap_config.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <ac/bytes.h>
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
@ -44,11 +45,11 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned short bom;
|
ac_uint4 bom;
|
||||||
unsigned short cnt;
|
ac_uint4 cnt;
|
||||||
union {
|
union {
|
||||||
unsigned long bytes;
|
ac_uint4 bytes;
|
||||||
unsigned short len[2];
|
ac_uint2 len[2];
|
||||||
} size;
|
} size;
|
||||||
} _ucheader_t;
|
} _ucheader_t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user