* Fix spacing with comment
* Updated code
* Test: Added Assume catches for each failed tests
* Added and implemented separate method to check if System CI is false
* Added a null check to ensure assumingCIIsFalse() method runs locally as well
* Changed assumeTrue to assumeFalse
* Fixed integer overflow by checking if bytesize is bigger than input length, then throwing exception
* Fixed integer overflow by checking if bytesize is bigger than input length, then throwing exception
* Fixed integer overflow by checking if bytesize is bigger than input length, then throwing exception
* improved error messages by adding new error enum INPUT_TOO_LARGE in SnappyErrorCode.java, and added happy and sad cases in SnappyTest.java
* fixed mispelling: validArrayInputLength --> isInvalidArrayInputLength
* switched SnappyError into ILLEGAL_ARGUMENT in SnappyErrorCode.java and Snappy.java and fixed a typo in error comment
* Fix buffer size boundary tests
* Remove negative array size tests
* updated comments for unit test
---------
Co-authored-by: Taro L. Saito <leo@xerial.org>
* asserted chunksize should be in the bounds of 0-java.outofmmeoryexception
* asserted chunksize should be in the bounds of 0-java.outofmmeoryexception
* https://github.com/xerial/snappy-java-ghsa-qcwq-55hx-v3vh/pull/2
* advisory-fix-3
* added and changed method name for happy and sad cases in SnappyTest.java
* removed expected error for happy case in unit testing
* added another unit test case in SnappyTest.java and fixed comments in SnappyInputStream.java
* switched SnappyError to INVALID_CHUNK_SIZE
* Updated unit tests
* Resolved conflicts with another PR merge
* Fixed integer overflow by checking if multiplication result is smaller than original value
* Fixed integer overflow by checking if multiplication result is smaller than original value
* Fixed integer overflow by checking if multiplication result is smaller than original value
* imporved error messages and added happy and sad cases for unit test in SnappyTest.java
* switched SnappyError into ILLEGAL_ARGUMENT in SnappyErrorCode.java and Snappy.java
* wrote new and updated unit test methods
* updated comments in SnappyTest.java
* Fixed and updated unit tests in SnappyTest.java
* trigger build native on PR and push
Signed-off-by: Sudip Roy <sudiproy1999@gmail.com>
* Add branch master
* Trigger native lib build only for PRs
* Test native lib build trigger
* Targetting the PR repo
* Add comment to trigger native lib build
* Fix syntax error
* Test with write permission
* Test with contents: write
* Test
* test
* Use gh pr checkout
* fix
* Add checkout phase
* test target repo:
* Try bot user
* clanup
* Use PAT
* Use different user
* simplify
* fix
* test
* Fix token
* revert
* Try push action
* use the same token
* fix tab
* Set ref
* Create a new PR for every master update
* fix
* fix indent
* Use native-all
---------
Signed-off-by: Sudip Roy <sudiproy1999@gmail.com>
Co-authored-by: Taro L. Saito <leo@xerial.org>
* Feature: Use LTS cross-compiler for Linux armv6/armv7 to use glibc 2.28
* Use softfp for armv7
* Fix armv6 config
* Update native libraries
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>