Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Stack overflow in Redis Backend and RestrictPolicy couldn't be saved when using DE embedding layer. #415

Merged
merged 2 commits into from
May 29, 2024

Conversation

MoFHeka
Copy link
Collaborator

@MoFHeka MoFHeka commented May 28, 2024

Description

Fix tmpDirPath with fixed size may cause stack overflow in Redis backend. The char size of the entered file path may exceed 1024. Fixes #405
Fix restrict_policy wasn't tracked when using Embedding layer. Fixes #385

Type of change

  • Bug fix
  • New Tutorial
  • Updated or additional documentation
  • Additional Testing
  • New Feature

Checklist:

  • I've properly formatted my code according to the guidelines
    • By running yapf
    • By running clang-format
  • This PR addresses an already submitted issue for TensorFlow Recommenders-Addons
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

How Has This Been Tested?

When using redis backend, enter a non-existent file path that is longer than 1024.

@MoFHeka MoFHeka requested a review from rhdong as a code owner May 28, 2024 17:30
@MoFHeka MoFHeka changed the title [fix] tmpDirPath with fixed size may cause stack overflow. [Fix] tmpDirPath with fixed size may cause stack overflow. May 28, 2024
@MoFHeka MoFHeka mentioned this pull request May 28, 2024
@MoFHeka MoFHeka changed the title [Fix] tmpDirPath with fixed size may cause stack overflow. [Fix] Stack overflow in Redis Backend and RestrictPolicy couldn't be saved when using DE embedding layer. May 28, 2024
Copy link
Member

@rhdong rhdong left a comment

Choose a reason for hiding this comment

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

LGTM

@rhdong rhdong merged commit a9313ae into tensorflow:master May 29, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants