Skip to content
  • Jeremy Roman's avatar
    Do not truncate filename pointer in preload sys_creat. · 521a4162
    Jeremy Roman authored
    The first argument is a const char*, not an fd, so converting it to int
    truncates it on systems where sizeof(int) < sizeof(const char*), such as
    Linux x86_64.
    
    Includes a test that passes a pointer address which should be outside
    the range where this happens to work.
    521a4162
This project is licensed under the MIT License. Learn more