trufflehog/pkg/sources
Miccah 0d451aa806
Fix bug in chunker that surfaces with a flaky passed in io.Reader (#1838)
* Fix bug in chunker that surfaces with a flaky passed in io.Reader

The chunker was previously expecting the passed in io.Reader to always
successfully read a full buffer of data, however it's valid for a Reader
to return less data than requested. When this happens, the chunker would
peek the same data that it then reads in the next iteration of the loop,
causing the same data to be scanned twice.

Co-authored-by: ahrav <ahravdutta02@gmail.com>

* Fix EOF error check

* Use io.ReadFull in Chunker

---------

Co-authored-by: ahrav <ahravdutta02@gmail.com>
2023-10-02 09:38:23 -07:00
..
circleci Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
docker Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
filesystem Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
gcs Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
git [bug] - correctly check err (#1824) 2023-09-27 15:52:07 -07:00
github consolidated pr and issue descr/comment flags (#1827) 2023-09-27 15:54:02 -04:00
gitlab Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
s3 Use S3 credentials waterfall (#1823) 2023-09-27 16:57:47 -04:00
syslog Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
chunker.go Fix bug in chunker that surfaces with a flaky passed in io.Reader (#1838) 2023-10-02 09:38:23 -07:00
chunker_test.go Fix bug in chunker that surfaces with a flaky passed in io.Reader (#1838) 2023-10-02 09:38:23 -07:00
errors.go Support fatal errors in job reports (#1562) 2023-07-31 11:28:30 -05:00
errors_test.go Implement String for ScanErrors (#1131) 2023-02-27 21:02:59 -06:00
job_progress.go Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
job_progress_test.go Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
mock_job_progress_test.go replace interface{} with any. (#1771) 2023-09-15 04:35:15 -07:00
resume.go [chore] Remove logrus from circleci, filesystem, gitlab, and s3 sources (#1089) 2023-02-10 11:02:55 -06:00
resume_test.go [chore] Remove logrus from circleci, filesystem, gitlab, and s3 sources (#1089) 2023-02-10 11:02:55 -06:00
source_manager.go Add ability to dynamically scale concurrently running sources (#1790) 2023-09-20 16:49:56 -07:00
source_manager_test.go Update Source interface to use SourceID and JobID types (#1774) 2023-09-14 11:28:24 -07:00
source_unit.go Implement SourceUnitUnmarshaller for all sources (#1416) 2023-06-23 11:15:51 -05:00
sources.go consolidated pr and issue descr/comment flags (#1827) 2023-09-27 15:54:02 -04:00
test_helpers.go fix github integration tests (#1042) 2023-01-25 08:57:39 -08:00