You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Issue #471 - accept an empty string as a password, but reject null.
3654
3649
OnKeysRequired(entry.Name);
3655
-
if(HaveKeys==false)
3650
+
if(rawPassword_==null)
3656
3651
{
3657
3652
thrownewZipException("No password available for AES encrypted stream");
3658
3653
}
@@ -4041,12 +4036,12 @@ public override long Position
4041
4036
/// <returns>
4042
4037
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
4043
4038
/// </returns>
4044
-
/// <exception cref="T:System.ArgumentException">The sum of offset and count is larger than the buffer length. </exception>
4045
-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4046
-
/// <exception cref="T:System.NotSupportedException">The stream does not support reading. </exception>
4047
-
/// <exception cref="T:System.ArgumentNullException">buffer is null. </exception>
@@ -4056,13 +4051,13 @@ public override int Read(byte[] buffer, int offset, int count)
4056
4051
/// Sets the position within the current stream.
4057
4052
/// </summary>
4058
4053
/// <param name="offset">A byte offset relative to the origin parameter.</param>
4059
-
/// <param name="origin">A value of type <see cref="T:System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
4054
+
/// <param name="origin">A value of type <see cref="System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4065
-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
/// <exception cref="System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4060
+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
@@ -4072,9 +4067,9 @@ public override long Seek(long offset, SeekOrigin origin)
4072
4067
/// Sets the length of the current stream.
4073
4068
/// </summary>
4074
4069
/// <param name="value">The desired length of the current stream in bytes.</param>
4075
-
/// <exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4070
+
/// <exception cref="System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
@@ -4170,12 +4165,12 @@ public override int ReadByte()
4170
4165
/// <returns>
4171
4166
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
4172
4167
/// </returns>
4173
-
/// <exception cref="T:System.ArgumentException">The sum of offset and count is larger than the buffer length. </exception>
4174
-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4175
-
/// <exception cref="T:System.NotSupportedException">The stream does not support reading. </exception>
4176
-
/// <exception cref="T:System.ArgumentNullException">buffer is null. </exception>
@@ -4224,9 +4219,9 @@ public override void Write(byte[] buffer, int offset, int count)
4224
4219
/// When overridden in a derived class, sets the length of the current stream.
4225
4220
/// </summary>
4226
4221
/// <param name="value">The desired length of the current stream in bytes.</param>
4227
-
/// <exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4222
+
/// <exception cref="System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception>
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
4230
4225
publicoverridevoidSetLength(longvalue)
4231
4226
{
4232
4227
thrownewNotSupportedException();
@@ -4236,13 +4231,13 @@ public override void SetLength(long value)
4236
4231
/// When overridden in a derived class, sets the position within the current stream.
4237
4232
/// </summary>
4238
4233
/// <param name="offset">A byte offset relative to the origin parameter.</param>
4239
-
/// <param name="origin">A value of type <see cref="T:System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
4234
+
/// <param name="origin">A value of type <see cref="System.IO.SeekOrigin"></see> indicating the reference point used to obtain the new position.</param>
/// <exception cref="T:System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4245
-
/// <exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
/// <exception cref="System.NotSupportedException">The stream does not support seeking, such as if the stream is constructed from a pipe or console output. </exception>
4240
+
/// <exception cref="System.ObjectDisposedException">Methods were called after the stream was closed. </exception>
0 commit comments