aisparser
aisparser copied to clipboard
AIS Parser SDK
I've been compiling Python versions using various Visual Studio versions for a few years now and have a set of project files for VS2022 Community Edition - do you have...
For c++ dev : int true; //!< 9 bits : True Heading this name is very bad. true is defined in c++. trueHeading must be better char virtual; //!< 1...
Should switch to using github actions at some point
The current version of the Vdm.add(String) method does not allow messages with no channel code set. If such message is being parsed, it throws a StringIndexOutOfBoundsException. Is this an issue...
In the C code it checks for the message sequence, order, and channel number: https://github.com/bcl/aisparser/blob/master/c/src/vdm_parse.c#L458 but in the Java parser it accepts whatever the current channel is: https://github.com/bcl/aisparser/blob/master/java/src/main/java/com/aisparser/Vdm.java#L115 (I no...
I know very little about java fuzzers, but should be a great way yo find test cases for things like #22. Based on a quick search, here are some possibles....
Other tests: - https://github.com/schwehr/libais/blob/master/src/test/ais27_test.cc - `!AIVDM,1,1,,B,K815>P8=5EikdUet,0*6B` - `0, 538005120, 1, false, 0, -79.641666666666666, 24.681666666666668, 11, 223, true, 0` - https://github.com/schwehr/libais/blob/master/test/data/typeexamples.json - https://github.com/schwehr/libais/blob/master/test/data/test.aivdm#L307 - https://git.savannah.gnu.org/cgit/gpsd.git/tree/test/sample.aivdm#n963 - https://github.com/bcl/aisparser/blob/master/c/test/main.c#L50 Some samples (good and...
https://github.com/schwehr/libais/blob/master/src/test/ais16_test.cc: ```c++ TEST(Ais16Test, DecodeAnything) { // !SAVDO,1,1,,B,@03OwnQ9RgLP3h0000000000,0*32,b003669978,1426173689 std::unique_ptr msg = Init( "!SAVDO,1,1,,B,@03OwnQ9RgLP3h0000000000,0*32"); Validate( msg.get(), 0, 3669978, 0, 308461000, 60, 0, // Destination A. 0, 0, 00, // Destination B. -1);...
https://github.com/schwehr/libais/blob/master/src/test/ais17_test.cc: !AIVDM,1,1,,A,A6WWW6gP00a3PDlEKLrarOwUr8Mg,0*03 0, 444196634, 3, -54.6133, 35.0333, 1, 19, 3513, 277, 6, 1 https://github.com/schwehr/libais/blob/master/test/data/typeexamples.json !AIVDM,1,1,,B,AwoiGRg:tOw>>9n5f9u>rOvwkraEe6ON,0*34,d-106,S1812,t111948.00,T48.3410012,r003669945,1325416791,1325416731 {"repeat": 3, "spare2": 24, "mmsi": 1065113482, "lon": -90.54833221435547, "scaled": true, "lat": -0.6650000214576721, "spare": 3, "device":...