mayingzhen / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Assert while seeking in tga image #144

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When compiling the attached tga image, an assert occurs during a call to 
SeekProc(handle, 0, SEEK_END);

What steps will reproduce the problem?
1. Compile the attached image using the command line:  nvcompress -bc1 -nocuda 
test.tga
2. Notice the assert that fires in StdStream::seek() -> nvDebugCheck(pos < 
size());

What is the expected output? What do you see instead?

Perhaps seeking zero bytes from the end should be before the last byte or this 
assert should be changed to:  nvDebugCheck(pos <= size());

Please use labels and text to provide additional information.

Original issue reported on code.google.com by code...@gmail.com on 20 Oct 2010 at 8:02

Attachments:

GoogleCodeExporter commented 8 years ago
You are right, seeking to the end of the file should be allowed. I'll fix this 
shortly.

Original comment by cast...@gmail.com on 21 Oct 2010 at 6:43

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1165.

Original comment by cast...@gmail.com on 21 Oct 2010 at 6:47