nicupavel / emlog

emlog -- the EMbedded-system LOG-device
GNU General Public License v2.0
57 stars 20 forks source link

Racy einfo allocation and emlog_info_list manipulation #10

Open ahippo opened 6 years ago

ahippo commented 6 years ago

As mentioned in a comment for #7, there are a few other race conditions:

This may cause memory leaks or crashes during concurrent opening of new emlog buffers, or concurrent closing/opening of an emlog device (when loaded with emlog_autofree=1 (defaults to off)).