/* skipfish - same_page() test utility ----------------------------------- Author: Michal Zalewski Copyright 2009, 2010 by Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #include #include #include #include #include #include #include #include #include #include #include #include "types.h" #include "alloc-inl.h" #include "string-inl.h" #include "crawler.h" #include "analysis.h" #include "database.h" #include "http_client.h" #include "report.h" #ifdef DEBUG_ALLOCATOR struct __AD_trk_obj* __AD_trk[ALLOC_BUCKETS]; u32 __AD_trk_cnt[ALLOC_BUCKETS]; #endif /* DEBUG_ALLOCATOR */ #define MAX_LEN (1024*1024) u8 p1[MAX_LEN], p2[MAX_LEN]; int main(int argc, char** argv) { static struct http_response r1, r2; s32 l1, l2; l1 = read(8, p1, MAX_LEN); l2 = read(9, p2, MAX_LEN); if (l1 < 0 || l2 < 0) FATAL("Usage: ./same_test 8