Fix potential integer overflows identified by Coverity

Convert ODK_LAST_STRESSABLE_TYPE to an aliased enum value so that
ODK_FieldLength always returns a valid value instead of SIZE_MAX.

PiperOrigin-RevId: 602823670
Change-Id: I7a843cacca8201677c0f31249112c04f6c3e04cb
This commit is contained in:
Googler
2024-01-30 13:26:44 -08:00
committed by Robert Shih
parent b239b11b60
commit e53e8ced89
4 changed files with 7 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ extern "C" {
#define ODK_MINOR_VERSION 0
/* ODK Version string. Date changed automatically on each release. */
#define ODK_RELEASE_DATE "ODK v19.0 2024-01-25"
#define ODK_RELEASE_DATE "ODK v19.0 2024-01-30"
/* The lowest version number for an ODK message. */
#define ODK_FIRST_VERSION 16