public void Bug3524222() { byte[] pattern = { 1, 2, 3 }; byte[] buf = (byte[])pattern.Clone(); using(BIO bio = new BIO(buf)) { buf[1] = 1; Assert.AreEqual(pattern, bio.ReadBytes(3).Array); } }