"Tal Kelrich via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: Tal Kelrich <hasturkun@xxxxxxxxx> > > Commit 7f4075949686 (fast-export: tighten anonymize_mem() interface to > handle only strings, 2020-06-23) changed the interface used in anonymizing > strings, but failed to update the size of annotated tag messages to match > the new anonymized string. > > As a result, exporting tags having messages longer than 13 characters > would create output that couldn't be parsed by fast-import, > as the data length indicated was larger than the data output. > > Reset the message size when anonymizing, and add a tag with a "long" > message to the test. > > Signed-off-by: Tal Kelrich <hasturkun@xxxxxxxxx> > --- > fast-export: fix anonymized tag using original length > > Fixes an issue with fast-export anonymization, where any original > annotated tag message longer than 13 characters would make the output > unimportable by fast-import (as the data length indicated the original > length). > > This also resolves a more minor issue, where if the original message was > short, the anonymized tag message would be truncated. Thanks. I've looked at all places where anonymize_str() is used and found that this is the only problematic caller. Will queue.