cpn: Parsing of unsigned int fixed

As atoi caps the value of a unsigned int bigger than (2^31 - 1) other
than just letting it overflow to the corresponding negative value on
32Bit-integer machines, it must not be used for parsing to unsigned int.

TODO: Also apply this fix to all other unsigned values (in database)
which get parsed by atoi.

Change-Id: I96e29b14d36479ab6e567c527a40feb0b5fb14e5
This commit is contained in:
Lars Rademacher
2013-12-02 17:18:32 +01:00
parent 8b5098abdd
commit e824e7a0fa
2 changed files with 5 additions and 5 deletions

View File

@ -15,11 +15,11 @@ message DatabaseCampaignMessage {
// ToDo: injection_instr can be deleted if all experiments switched to
// using generic InjectionPointMessage
required int32 injection_instr = 4 [(sql_ignore) = true];
optional int32 injection_instr_absolute = 5 [(sql_ignore) = true];
required int32 data_address = 6 [(sql_ignore) = true];
optional uint32 injection_instr_absolute = 5 [(sql_ignore) = true];
required uint32 data_address = 6 [(sql_ignore) = true];
required int32 data_width = 7 [(sql_ignore) = true];
required string variant = 8 [(sql_ignore) = true];
required string benchmark = 9 [(sql_ignore) = true];
required InjectionPointMessage injection_point = 10 [(sql_ignore) = true];
}
}