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
This calls through to func Utilities.write<T>(array: [T], closure: (inout ByteBuffer, T) -> ()), which calls write(integer: numericCast(array.count), as: Int16.self). And numericCast traps in Release builds for any values outside the representable range.
An example where this can happen is in Fluent queries with \.id ~~ <array with more than 2^15 elements>.
Suggested solution: throw an error when trying to build a query with this many elements.
The text was updated successfully, but these errors were encountered:
This calls through to
func Utilities.write<T>(array: [T], closure: (inout ByteBuffer, T) -> ())
, which callswrite(integer: numericCast(array.count), as: Int16.self)
. AndnumericCast
traps in Release builds for any values outside the representable range.An example where this can happen is in Fluent queries with
\.id ~~ <array with more than 2^15 elements>
.Suggested solution: throw an error when trying to build a query with this many elements.
The text was updated successfully, but these errors were encountered: