Skip to content

Conversation

@lgirdwood
Copy link
Member

GIT_LOG_HASH can be more than 8 digits. Limit hash value up to
first 8 digits.

fixes: #3322

Signed-off-by: Fred Oh fred.oh@linux.intel.com

@lgirdwood
Copy link
Member Author

@fredoh9 can you check this - I've had to fix both SUBSTRING ranges as they overflow.

@lgirdwood
Copy link
Member Author

All targets build locally with GCC.

Comment on lines 83 to 84
Copy link
Member

@ktrzcinx ktrzcinx Aug 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string(SUBSTRING <string> <begin> <length> <out-var>)

string(SUBSTRING 1234567890 0 7 SOF_SRC_HASH) gives result Source content hash: 1234567 1234-567, so value 8 shouldn't overflow uint32_t src_hash;

Copy link
Contributor

@fredoh9 fredoh9 Aug 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, i tested with my local build also. 2nd number is length, so 8

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok thanks guys - and now this works for me. I must have put in 9 as a typo when testing as it failed on overflow !

GIT_LOG_HASH can be more than 8 digits. Limit hash value up to
first 8 digits.

fixes: #3322

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Copy link
Contributor

@fredoh9 fredoh9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! thanks!

@lgirdwood lgirdwood merged commit 7a10da0 into master Aug 24, 2020
@lgirdwood lgirdwood deleted the lrg/topic/cmake branch January 27, 2021 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] APL/CNL Build failed due to bigger SOF_SRC_HASH

5 participants