3798 synchronize getter and setter for boolean which identifies zip bomb status

This commit is contained in:
William Schaefer 2018-06-18 12:36:08 -04:00
parent 7e26ff6c83
commit fcefceae4a

View File

@ -1292,7 +1292,7 @@ class SevenZipExtractor {
/** /**
* Set the flag which identifies whether this file has been determined to be a zip bomb to true. * Set the flag which identifies whether this file has been determined to be a zip bomb to true.
*/ */
void flagAsZipBomb() { synchronized void flagAsZipBomb() {
flaggedAsZipBomb = true; flaggedAsZipBomb = true;
} }
@ -1301,7 +1301,7 @@ class SevenZipExtractor {
* *
* @return True when flagged as a zip bomb, false if it is not flagged * @return True when flagged as a zip bomb, false if it is not flagged
*/ */
boolean isFlaggedAsZipBomb() { synchronized boolean isFlaggedAsZipBomb() {
return flaggedAsZipBomb; return flaggedAsZipBomb;
} }