Skip to content
Snippets Groups Projects
Select Git revision
0 results

test_realpath.c

  • Fred Wright's avatar
    42c54ff9
    test_realpath: Add nonexistent path case. · 42c54ff9
    Fred Wright authored
    Although more thorough testing of various path cases would be useful,
    this one, which just tests a simple nonexistent relative path, is
    sufficient to demonstrate a bug in the 10.6 non-POSIX realpath(),
    which returns "success" via an unsafe pointer to an internal buffer.
    
    TESTED:
    Fails in known bad case without the fix; passes in all cases with the
    fix.
    42c54ff9
    History
    test_realpath: Add nonexistent path case.
    Fred Wright authored
    Although more thorough testing of various path cases would be useful,
    this one, which just tests a simple nonexistent relative path, is
    sufficient to demonstrate a bug in the 10.6 non-POSIX realpath(),
    which returns "success" via an unsafe pointer to an internal buffer.
    
    TESTED:
    Fails in known bad case without the fix; passes in all cases with the
    fix.