aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/atom.h
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2019-05-13 09:20:44 +0200
committerJohn Högberg <[email protected]>2019-05-13 14:11:47 +0200
commit529aec04776dcead1eb7b7fe3ff975d7538cfa5b (patch)
tree36e9f13f31dbf76f19d9edc885cd1455d6926916 /erts/emulator/beam/atom.h
parenta113f6117fd696ea6f84ed754055b4ec97a7ccb2 (diff)
downloadotp-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.h8
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