We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func TestConcurrentAccess(t *testing.T) { file, _ := os.Open("../../testdata/cool_images.doc") // a file with small number of embedded images defer file.Close() doc, err := mscfb.New(file) if err != nil { log.Fatal(err) } var wg sync.WaitGroup wg.Add(len(doc.File)) for _, f := range doc.File { go func() { defer wg.Done() _, err := io.Copy(io.Discard, f) if err != nil { log.Println(err) } }() } wg.Wait() }
Race is on r.buf in mscfb.(*Reader).readAt()
r.buf
mscfb.(*Reader).readAt()
if _, err := r.ra.ReadAt(r.buf[:length], offset); err != nil {
The text was updated successfully, but these errors were encountered:
thanks for this report @wizardishungry
Sorry, something went wrong.
data race on concurrent file reads; #15
2e9a4d7
No branches or pull requests
Race is on
r.buf
inmscfb.(*Reader).readAt()
The text was updated successfully, but these errors were encountered: