glib/girepository
Philip Withnall 33f157bd6b gitypeinfo: Remove invalid return value from gi_type_info_get_array_type()
`-1` isn’t part of `GIArrayType`, so it’s not particularly type safe to
return it from `gi_type_info_get_array_type()`. Instead, make it an
error to call that function on a type which isn’t an array type.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #3155
2024-01-16 23:17:19 +00:00
..
cmph girrepository: Use standard int sized types instead of g[u]int* 2024-01-16 18:40:42 +01:00
tests cmph-bdz-test: Use more size_t 2024-01-16 18:56:57 +01:00
tools g-ir-compiler: Fix leaks in write_out_typelib 2024-01-15 22:44:41 -08:00
gdump.c girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gi-dump-types.c girepository: Replace tabs with spaces in indentation 2024-01-16 17:30:37 +01:00
giarginfo.c giarginfo: Use gssize to return the closure and destroy indexes 2024-01-16 18:40:42 +01:00
giarginfo.h giarginfo: Use gssize to return the closure and destroy indexes 2024-01-16 18:40:42 +01:00
gibaseinfo-private.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gibaseinfo.c gibaseinfo: Ensure the typelib offset is within the allowed limits 2024-01-16 18:40:42 +01:00
gibaseinfo.h girepository: Use size_t for size-related arguments and return types 2024-01-16 18:40:42 +01:00
gicallableinfo.c girepository: Ensure indexed access on members is not overflowing 2024-01-16 18:40:42 +01:00
gicallableinfo.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gicallbackinfo.c gicallbackinfo: Port documentation to gi-docgen and update 2023-12-18 14:14:15 +00:00
gicallbackinfo.h girepository: Replace tabs with spaces in indentation 2024-01-16 17:30:37 +01:00
giconstantinfo.c girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
giconstantinfo.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gienuminfo.c girepository: Ensure indexed access on members is not overflowing 2024-01-16 18:40:42 +01:00
gienuminfo.h girrepository: Use standard int sized types instead of g[u]int* 2024-01-16 18:40:42 +01:00
gifieldinfo.c girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gifieldinfo.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gifunctioninfo.c girepository: Use expected signed types for iterating 2024-01-16 18:40:42 +01:00
gifunctioninfo.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
giinterfaceinfo.c girepository: Use expected signed types for iterating 2024-01-16 18:40:42 +01:00
giinterfaceinfo.h girrepository: Use standard int sized types instead of g[u]int* 2024-01-16 18:40:42 +01:00
ginvoke.c girrepository: Use standard int sized types instead of g[u]int* 2024-01-16 18:40:42 +01:00
giobjectinfo.c girepository: Use expected signed types for iterating 2024-01-16 18:40:42 +01:00
giobjectinfo.h girrepository: Use standard int sized types instead of g[u]int* 2024-01-16 18:40:42 +01:00
gipropertyinfo.c gipropertyinfo: Port documentation to gi-docgen and update 2023-12-18 14:14:15 +00:00
gipropertyinfo.h gipropertyinfo: Port documentation to gi-docgen and update 2023-12-18 14:14:15 +00:00
giregisteredtypeinfo.c girepository: Use char instead of glib-specific gchar 2024-01-16 18:40:42 +01:00
giregisteredtypeinfo.h girepository: Use char instead of glib-specific gchar 2024-01-16 18:40:42 +01:00
girepository-private.h girepository: Use expected signed types for iterating 2024-01-16 18:40:42 +01:00
girepository.c girepository: Various indentation cleanups 2024-01-16 18:56:57 +01:00
girepository.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
girffi.c girepository: Use expected signed types for iterating 2024-01-16 18:40:42 +01:00
girffi.h girrepository: Use void* instead of gpointer 2024-01-16 18:40:37 +01:00
girmodule-private.h girepository: Various indentation cleanups 2024-01-16 18:56:57 +01:00
girmodule.c girmodule: Ensure we actually use unsigned for gi_ir_module_fatal line 2024-01-16 18:40:42 +01:00
girnode-private.h girepository: Use single-bit sized elements for the GIIrNode structures 2024-01-16 18:56:57 +01:00
girnode.c girnode: Use size_t to compute gir node size and ensure value is valid 2024-01-16 18:40:42 +01:00
giroffsets.c giroffsets: Use size types for size and alignments 2024-01-16 18:55:45 +01:00
girparser-private.h girepository: Use char instead of glib-specific gchar 2024-01-16 18:40:42 +01:00
girparser.c girepository: Various indentation cleanups 2024-01-16 18:56:57 +01:00
girwriter-private.h girepository: Rename symbols to the GI namespace 2023-11-08 15:05:20 +00:00
girwriter.c gitypeinfo: Change gi_type_info_get_array_fixed_size() to return size_t 2024-01-16 23:13:01 +00:00
gisignalinfo.c gisignalinfo: Port documentation to gi-docgen and update 2023-12-18 14:14:16 +00:00
gisignalinfo.h gisignalinfo: Port documentation to gi-docgen and update 2023-12-18 14:14:16 +00:00
gistructinfo.c gistructinfo: Use proper types for offset lookup 2024-01-16 18:40:42 +01:00
gistructinfo.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gitypeinfo.c gitypeinfo: Remove invalid return value from gi_type_info_get_array_type() 2024-01-16 23:17:19 +00:00
gitypeinfo.h gitypeinfo: Change gi_type_info_get_array_fixed_size() to return size_t 2024-01-16 23:13:01 +00:00
gitypelib-internal.h gitypelib: Replace gi_typelib_check_format with compile-time static checks only 2024-01-16 18:40:42 +01:00
gitypelib.c gitypelib: Replace gi_typelib_check_format with compile-time static checks only 2024-01-16 18:40:42 +01:00
gitypelib.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
gitypes.h girrepository: Replace usage of gsize with standard size_t 2024-01-16 18:40:42 +01:00
giunioninfo.c girepository: Use size_t for size-related arguments and return types 2024-01-16 18:40:42 +01:00
giunioninfo.h girepository: Use size_t for size-related arguments and return types 2024-01-16 18:40:42 +01:00
giunresolvedinfo.c giunresolvedinfo: Port documentation to gi-docgen and update 2023-12-18 14:14:16 +00:00
giunresolvedinfo.h girepository: Replace tabs with spaces in indentation 2024-01-16 17:30:37 +01:00
givfuncinfo.c girepository: Various indentation cleanups 2024-01-16 18:56:57 +01:00
givfuncinfo.h girepository: Use size_t for size-related arguments and return types 2024-01-16 18:40:42 +01:00
gthash.c girrepository: Use standard int sized types instead of g[u]int* 2024-01-16 18:40:42 +01:00
meson.build girepository: Re-number GIR file from 2.0 to 3.0 2023-12-22 12:21:57 +00:00