Revision: 5763 http://sourceforge.net/p/jump-pilot/code/5763 Author: michaudm Date: 2018-04-11 22:21:01 +0000 (Wed, 11 Apr 2018) Log Message: ----------- Fix #473 : shapefile driver no more limited to 4G files
Modified Paths: -------------- core/trunk/ChangeLog core/trunk/src/org/geotools/shapefile/Shapefile.java Modified: core/trunk/ChangeLog =================================================================== --- core/trunk/ChangeLog 2018-04-11 06:32:11 UTC (rev 5762) +++ core/trunk/ChangeLog 2018-04-11 22:21:01 UTC (rev 5763) @@ -5,6 +5,9 @@ * Changes.txt updated until here ********************************************** +2018-04-12 mmichaud <m.michael.mich...@orange.fr> + * Fix #473 : shapefile driver no more limited to 4G files + 2018-04-07 Giuseppe Aruta * Updated plugins Modified: core/trunk/src/org/geotools/shapefile/Shapefile.java =================================================================== --- core/trunk/src/org/geotools/shapefile/Shapefile.java 2018-04-11 06:32:11 UTC (rev 5762) +++ core/trunk/src/org/geotools/shapefile/Shapefile.java 2018-04-11 22:21:01 UTC (rev 5763) @@ -385,7 +385,7 @@ int recordNumber = 0; while (true) { - int offset = shx.readIntBE(); + long offset = shx.readIntBE() & 0x00000000ffffffffL; int length = shx.readIntBE(); recordNumber++; try{ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel