diff options
author | John Högberg <[email protected]> | 2019-05-13 09:20:44 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-05-13 14:11:47 +0200 |
commit | 529aec04776dcead1eb7b7fe3ff975d7538cfa5b (patch) | |
tree | 36e9f13f31dbf76f19d9edc885cd1455d6926916 /erts/emulator/beam/atom.h | |
parent | a113f6117fd696ea6f84ed754055b4ec97a7ccb2 (diff) | |
download | otp-529aec04776dcead1eb7b7fe3ff975d7538cfa5b.tar.gz otp-529aec04776dcead1eb7b7fe3ff975d7538cfa5b.tar.bz2 otp-529aec04776dcead1eb7b7fe3ff975d7538cfa5b.zip |
erts: Fix buffer overflow in xxx_to_existing_atom
Diffstat (limited to 'erts/emulator/beam/atom.h')
-rw-r--r-- | erts/emulator/beam/atom.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/atom.h b/erts/emulator/beam/atom.h index 385120a8d9..bc8219120c 100644 --- a/erts/emulator/beam/atom.h +++ b/erts/emulator/beam/atom.h @@ -133,14 +133,14 @@ typedef enum { int atom_table_size(void); /* number of elements */ int atom_table_sz(void); /* table size in bytes, excluding stored objects */ -Eterm am_atom_put(const char*, int); /* ONLY 7-bit ascii! */ -Eterm erts_atom_put(const byte *name, int len, ErtsAtomEncoding enc, int trunc); -int erts_atom_put_index(const byte *name, int len, ErtsAtomEncoding enc, int trunc); +Eterm am_atom_put(const char*, Sint); /* ONLY 7-bit ascii! */ +Eterm erts_atom_put(const byte *name, Sint len, ErtsAtomEncoding enc, int trunc); +int erts_atom_put_index(const byte *name, Sint len, ErtsAtomEncoding enc, int trunc); void init_atom_table(void); void atom_info(fmtfn_t, void *); void dump_atoms(fmtfn_t, void *); Uint erts_get_atom_limit(void); -int erts_atom_get(const char* name, int len, Eterm* ap, ErtsAtomEncoding enc); +int erts_atom_get(const char* name, Uint len, Eterm* ap, ErtsAtomEncoding enc); void erts_atom_get_text_space_sizes(Uint *reserved, Uint *used); #endif |