Ticket #8925 (closed defect: fixed)

Opened 7 years ago

Last modified 6 years ago

glGetShaderSource doesn't zero-terminate source string

Reported by: kuroneko Owned by:
Priority: major Component: 3D support
Version: VirtualBox 4.0.8 Keywords:
Cc: Guest type: Windows
Host type: other

Description (last modified by frank) (diff)

This has been observed for windows and Mac OS hosts.

Once the source length (including terminator) has been established through glGetShaderiv() a buffer is allocated. The call to glGetShaderSource() is now supposed to fill this buffer with the shader source which *is* zero-terminated. The fill length is reported without said terminator (i.e. strlen(src)).

What I observe is that the length is reported correctly, the shader source itself is correct but the zero-terminator is missing.


Validation-2011-05-18-17-31-54.log Download (75.1 KB) - added by kuroneko 7 years ago.

Change History

comment:1 Changed 7 years ago by kuroneko

Running the same application directly on the host GL library doesn't show the issue (i.e. the shader source is correctly terminated).

Changed 7 years ago by kuroneko

comment:2 Changed 7 years ago by leonid

Should be fixed in SVN.

comment:3 Changed 6 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use