Re: [PATCH 17/63] dyndbg: check DYNDBG_CLASSMAP_DEFINE args at compile-time

2025-03-17 Thread jim . cromie
On Tue, Feb 25, 2025 at 7:17 AM Louis Chauvet wrote: > > > > Le 25/01/2025 à 07:45, Jim Cromie a écrit : > > Add __DYNDBG_CLASSMAP_CHECK to implement these arg-checks at compile: > > 0 <= _base < 63 > > class_names is not empty > > class_names[0] is a string > > (class_name

Re: [PATCH 17/63] dyndbg: check DYNDBG_CLASSMAP_DEFINE args at compile-time

2025-02-25 Thread Louis Chauvet
Le 25/01/2025 à 07:45, Jim Cromie a écrit : Add __DYNDBG_CLASSMAP_CHECK to implement these arg-checks at compile: 0 <= _base < 63 class_names is not empty class_names[0] is a string (class_names.length + _base) < 63 These compile-time checks will prevent severa

[PATCH 17/63] dyndbg: check DYNDBG_CLASSMAP_DEFINE args at compile-time

2025-01-27 Thread Jim Cromie
Add __DYNDBG_CLASSMAP_CHECK to implement these arg-checks at compile: 0 <= _base < 63 class_names is not empty class_names[0] is a string (class_names.length + _base) < 63 These compile-time checks will prevent several misuses; 4 such examples are added to test_dyna