box: replace malloc with xmalloc in key_def_dup
This patch replaces malloc() with xmalloc() in key_def_dup() to avoid the possibility of skipping the malloc() return value check. Closes tarantool/security#81 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring
Showing
- src/box/index_def.c 4 additions, 8 deletionssrc/box/index_def.c
- src/box/key_def.c 1 addition, 5 deletionssrc/box/key_def.c
- src/box/key_def.h 0 additions, 2 deletionssrc/box/key_def.h
- src/box/merger.c 0 additions, 4 deletionssrc/box/merger.c
- src/box/vy_lsm.c 0 additions, 7 deletionssrc/box/vy_lsm.c
- src/box/vy_scheduler.c 0 additions, 9 deletionssrc/box/vy_scheduler.c
Loading