Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/fuzzing/NullOStream.cpp
blob: 53e0893dcc915922614f1665c89a64a449fc841e (plain)
1
2
3
4
5
6
7
8
9
10
#include "NullOStream.h"

void NullOStream::avoidOutOfLineVirtualCompilerWarning()
{
}

int NullStreambuf::overflow(int c){
    setp(dummyBuffer, dummyBuffer + sizeof(dummyBuffer));
    return (c == traits_type::eof()) ? '\0' : c;
}