You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The thumbhash_encoder_create function includes a null-check on the return value from new; however, if new were to fail, the default behavior is to throw an std::bad_alloc exception rather than return null, making the if-condition unreachable.
The
thumbhash_encoder_create
function includes a null-check on the return value fromnew
; however, ifnew
were to fail, the default behavior is to throw anstd::bad_alloc
exception rather than return null, making theif
-condition unreachable.lilliput/thumbhash.cpp
Lines 18 to 21 in 217a9d5
The text was updated successfully, but these errors were encountered: