estkme-group / lpac

C-based eUICC LPA
GNU Affero General Public License v3.0
267 stars 63 forks source link

fix: ensure "no conversion" result is checked correctly #146

Closed CoelacanthusHex closed 1 month ago

CoelacanthusHex commented 1 month ago

Although POSIX said user should check errno instead of return value, but errno may not be set when no conversion is performed according to C99. Check nptr is same as str_end to ensure there is no conversion.

Signed-off-by: Celeste Liu CoelacanthusHex@gmail.com