diff options
author | Erlang/OTP <[email protected]> | 2019-05-14 15:27:40 +0200 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2019-05-14 15:27:40 +0200 |
commit | 7b9cce213cc303115f37af788e68fb2249418c95 (patch) | |
tree | 6bb407e7aaf24601ee035b6d17a898d54df77307 /erts/emulator/beam/atom.h | |
parent | 19787959d0f6fd3c580c41fa7dc58d8eb081235e (diff) | |
parent | 529aec04776dcead1eb7b7fe3ff975d7538cfa5b (diff) | |
download | otp-7b9cce213cc303115f37af788e68fb2249418c95.tar.gz otp-7b9cce213cc303115f37af788e68fb2249418c95.tar.bz2 otp-7b9cce213cc303115f37af788e68fb2249418c95.zip |
Merge branch 'john/erts/fix-xxx_to_existing_atom-overflow/ERL-944/OTP-15819' into maint-21
* john/erts/fix-xxx_to_existing_atom-overflow/ERL-944/OTP-15819:
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 ca920679c6..f51c5a8c62 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 |