kosma / minmea

a lightweight GPS NMEA 0183 parser library in pure C
Do What The F*ck You Want To Public License
773 stars 250 forks source link

Fix Integer Overflow #32

Closed gy741 closed 2 years ago

gy741 commented 6 years ago

Hello,

I fixed the Integer Overflow bug. (#30 )

Please confirm.

Thanks.

karas@karas:~/minmea$ make test
cc -g -Wall -Wextra -Werror -std=c99 -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE -pthread   -c -o tests.o tests.c
cc -g -Wall -Wextra -Werror -std=c99 -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE -pthread   -c -o minmea.o minmea.c
cc   tests.o minmea.o  -lcheck_pic -pthread -lrt -lm -lsubunit -o tests
+++ Running Check test suite...
./tests
Running suite(s): minmea
100%: Checks: 33, Failures: 0, Errors: 0