This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright The Prometheus Authors | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // This is a MOCK IMPLEMENTATION FILE for LFX Application purposes. | |
| // | |
| // This file is NOT meant to be compiled - it's a reference implementation | |
| // showing the key modifications with detailed comments explaining WHY each change is made. | |
| // Phase 1: Unit Tests with Race Detector | |
| // Test 1: Thread-safe multiRef | |
| func TestMultiRefMapConcurrent(t *testing.T) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright The Prometheus Authors | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // This is a MOCK IMPLEMENTATION FILE for LFX Application purposes. | |
| // It demonstrates the code changes needed for early scraping during WAL replay. | |
| // | |
| // This file is NOT meant to be compiled - it's a reference implementation | |
| // showing the key modifications with detailed comments explaining WHY each change is made. | |
| package prometheus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adityatiwari@DeathNote:~/temp/poppler/utils$ cd ~/temp/poppler/glib/tests/fuzzing | |
| mkdir -p corpus | |
| cp ~/temp/Sample-pdf.pdf corpus/ | |
| timeout 10 ./struct_text_fuzzer corpus/ | |
| # Check if it processed the PDF without crashing | |
| echo $? | |
| INFO: Running with entropic power schedule (0xFF, 100). | |
| INFO: Seed: 3329132474 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fuzzer for PDF structured text parser | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <poppler.h> | |
| // Recursive function to exercise structure tree parsing | |
| static void exercise_structure_tree(PopplerStructureElementIter *iter) | |
| { | |
| if (!iter) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \m4_TLV_version 1d: tl-x.org | |
| \SV | |
| // URL include paths: | |
| m4_define(['m4_swerv_repo'], ['['https://raw.githubusercontent.com/stevehoover/Cores-SweRV/master/']']) | |
| m4_define(['m4_swerv_src'], ['m4_swerv_repo['design/']']) | |
| m4_define(['m4_swerv_config_src'], ['m4_swerv_repo['configs/snapshots/default/']']) | |
| // Headers: | |
| m4_sv_get_url(m4_swerv_config_src['pic_map_auto.h']) | |
| m4_sv_get_url(m4_swerv_config_src['pic_ctrl_verilator_unroll.sv']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \m5_TLV_version 1d: tl-x.org | |
| \SV | |
| module top(input wire clk, input wire reset, input wire [31:0] cyc_cnt, output wire passed, output wire failed); | |
| \TLV | |
| $reset = *reset; | |
| $cnt[3:0] = $reset ? 0 : >>1$cnt + 1; | |
| /inv |