DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.74k stars 387 forks source link

couple of nullptr checks to prevent crashes (MSVC2022) #680

Closed GerHobbelt closed 1 year ago

DanBloomberg commented 1 year ago

I've been fairly consistent checking mallocs that can be quite large, but not worrying about tiny mallocs of a few hundred bytes at most. The check for cdir returned from stringNew() in l.3086 should be checked.

GerHobbelt commented 1 year ago

👍 Thanks again!