bitextor / pdf-extract

PDF parser and converter to HTML
GNU General Public License v3.0
83 stars 14 forks source link

Race condition collecting output #45

Closed kpu closed 4 years ago

kpu commented 4 years ago

These threads should not need interrupt because they should naturally reach end of stream and then join:

https://github.com/bitextor/pdf-extract/blob/c688bbfee617be7c1c71526b2e4f350a2c27f7a5/src/pdfextract/PDFToHtml.java#L163-L170

Currently as coded it's possible to interrupt before they collect all of the program's output, non-deterministically and silently resulting in less data.