Fix potential illegal memroy access when using a build-id note with a negative size.