Skip to content

Conversation

Deepdive543443
Copy link
Contributor

@Deepdive543443 Deepdive543443 commented Jul 28, 2025

No description provided.

@tencent-adm
Copy link
Member

tencent-adm commented Jul 28, 2025

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ Deepdive543443
❌ nihui
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

github-actions bot commented Jul 28, 2025

The binary size change of libncnn.so (bytes)

architecture base size pr size difference
x86_64 15155464 15155464 0 😘
armhf 6182208 6182272 +64 ⚠️
aarch64 9520608 9520808 +200 ⚠️

@github-actions github-actions bot added the core label Aug 4, 2025
@Deepdive543443 Deepdive543443 changed the title Add input shapes validation to prevent heap overflow in Concat layer Add input shapes validation Aug 4, 2025
@Deepdive543443 Deepdive543443 reopened this Sep 2, 2025
@codecov-commenter
Copy link

codecov-commenter commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.89%. Comparing base (ae8bb42) to head (614eaca).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/net.cpp 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6218      +/-   ##
==========================================
+ Coverage   95.85%   95.89%   +0.03%     
==========================================
  Files         840      840              
  Lines      265625   265631       +6     
==========================================
+ Hits       254628   254737     +109     
+ Misses      10997    10894     -103     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

src/net.cpp Outdated
Comment on lines 2209 to 2212
Mat shape = d->net->blobs()[blob_index].shape;
if (shape.total() && (shape.w != in.w) && (shape.h != in.h) && (shape.d != in.d) && (shape.c != in.c))
return -1;

Copy link
Member

Choose a reason for hiding this comment

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

  • 这地方是不是得 || 而不是 &&
  • shape 总是 pack1 的,而 in 可能是任意 pack,要考虑有 pack 的情形
  • shape 中可能存在 w h d c <=0 的情形,表示动态,要考虑这种情形

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants