According to the source code, this string is printed to the console when the generated string is larger than the 'size' that is passed into the call to Com_sprintf. The actual write to the destination buffer, though, is done with Q_strncpyz. This ensures that the write to the destination buffer is safe.
Yes, but if I say 'size' overflow no one knows what I am talking about.
(Worse case, a model won't get loaded because the full path didn't make it to the string... Something like that...)
Not quite, a malformed md3 can be used to inject code and is one of the reasons auto-download is off by default.
Well, that's because tr3b wanted direct paths in his scripts, i didn't like this, and he said I should do this :/
But you don't need direct paths, you only need the path within the VFS (virtual file system) and considering the limitations of the md3 format:
The MD3 file format has several limits that you should consider when making a model for this format. These are outlined below.
- Only faces and verticies in a group get saved.
- The MD3_PATH+file name cannot be longer than 63 characters. (Textures and model names)
- The group name and point name cannot be longer than 63 characters.
- Maximum of 1024 animation frames
- Maximum of 16 Points (Quake 3 Tags)
- Maximum of 32 Groups
- Maximum of 256 Textures per Group
- Maximum of 8192 Triangles per Group
- Maximum of 4096 Verticies per Group
It's not a good idea to include more information than you absolutely need.