After a few seconds of thinking:
old plan: update field in a structure.
new plan 1: call existing method that updates field and sets authentication code.
new plan 2: provide alternative accessor that does not check authentication code.
new plan 3: provide alternative alternative authentication code that always passes.
Perhaps using valgrind to find and fix memory corruption bugs would be more sensible.