... omissis ...
ptr=calloc(SIZE, sizeof(long));
... etc ...
then I have :
aDjw'pfojqe'rf[24oijgfpoemgl;m,g02ir-9u13]9fu24[efgje2ioprn
Same sha1 hash.
But wait, why should waste 1000 GPU to deface a Git repository when I can simply delete it. I can change the files, I can delete it. It's simply stupid.
An attack with a sense is to change this:
ptr=calloc(SIZE, sizeof(long));
inserting:
ptr=calloc(SIZE-10, sizeof(long));
Now I have a BOF, same hash, only a code review can find the fraudulent change.
This is beyond "I make a collision inserting commented gibberish" , like this:
// adojwqf'pjqeworivhneq;lnvl;dqjnfvljeqrvneljvn
You have to insert a change that works and implement an attack making it invisible.
Good luck with that. I also read in some comments some AI nonsense I find Star Trek bullshit.
> If you still insist on a working example pay me $125k and I'll produce one for you
Even with 100M$ budget, you can't.
But why I even want to do that ? I have access, I can replace the whole repo with one full of exploitable bugs !
So the initial question: "If I change sha-1 in Git with some newer version, is that a security improvement?" . I feel the the answer is "NO".