This is an archive of the discontinued LLVM Phabricator instance.

Add new interceptor: fgetln(3)
ClosedPublic

Authored by krytarowski on Feb 19 2018, 2:16 PM.

Details

Summary

fgetln - get a line from a stream

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Feb 19 2018, 2:16 PM
krytarowski retitled this revision from Add new interceptor: fgetln(2) to Add new interceptor: fgetln(3).Feb 19 2018, 2:51 PM
vitalybuka accepted this revision.Feb 19 2018, 11:27 PM
vitalybuka added inline comments.
lib/sanitizer_common/sanitizer_common_interceptors.inc
6830

Do we need "unpoison_file(stream);"?

6830

"char *str ="

This revision is now accepted and ready to land.Feb 19 2018, 11:27 PM
krytarowski added inline comments.Feb 20 2018, 7:49 AM
lib/sanitizer_common/sanitizer_common_interceptors.inc
6830

It looks like we don't need unpoison_file(stream);

Right now we don't sanitize FILE on NetBSD anyway. Once I will sanitize this struct I might revisit it.

This revision was automatically updated to reflect the committed changes.