test_read_format_rar5.c (349524) | test_read_format_rar5.c (349900) |
---|---|
1/*- 2 * Copyright (c) 2018 Grzegorz Antoniak 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1201 unchanged lines hidden (view full) --- 1210 (void) archive_read_next_header(a, &ae); 1211 while(0 != archive_read_data(a, buf, sizeof(buf))) {} 1212 1213 (void) archive_read_next_header(a, &ae); 1214 while(0 != archive_read_data(a, buf, sizeof(buf))) {} 1215 1216 EPILOGUE(); 1217} | 1/*- 2 * Copyright (c) 2018 Grzegorz Antoniak 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1201 unchanged lines hidden (view full) --- 1210 (void) archive_read_next_header(a, &ae); 1211 while(0 != archive_read_data(a, buf, sizeof(buf))) {} 1212 1213 (void) archive_read_next_header(a, &ae); 1214 while(0 != archive_read_data(a, buf, sizeof(buf))) {} 1215 1216 EPILOGUE(); 1217} |
1218 1219DEFINE_TEST(test_read_format_rar5_arm_filter_on_window_boundary) 1220{ 1221 char buf[4096]; 1222 PROLOGUE("test_read_format_rar5_arm_filter_on_window_boundary.rar"); 1223 1224 /* Return codes of those calls are ignored, because this sample file 1225 * is invalid. However, the unpacker shouldn't produce any SIGSEGV 1226 * errors during processing. */ 1227 1228 (void) archive_read_next_header(a, &ae); 1229 while(0 != archive_read_data(a, buf, sizeof(buf))) {} 1230 1231 EPILOGUE(); 1232} |
|