You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why ? Oracle number (OCINumber) is a struct containing an array of 22 byte.
The comparison function assume the input number is a valid initialized OCINumber.
Thus comparing 3 bytes still does the job in any case (regarding current checked values)
Tailing bytes in the 22 byte array (bytes after the first two 0x01,0x00) are undefined and can be any, not zeroes only.
External libraries can pass you practically any value in non-valuable "tail" part and it still be valid Oracle number, OCI handles it properly.
file src/number.c, line #457 is defined as
while it should compare 3 bytes for magic number #0 and two bytes for magic number #1,
it will be better to fix next way:
The text was updated successfully, but these errors were encountered: