tlwg / libthai

GNU Lesser General Public License v2.1
70 stars 19 forks source link

brk_shot_reuse doesn't check the return from realloc() #23

Open marcmutz opened 1 year ago

marcmutz commented 1 year ago

The code in brk_shot_reuse() doesn't check the return value and directly assigns it to the pointer variable being extended. This is bad for two reasons:

Since the rest of the code handles malloc() failures, I assume this is an oversight.