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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 'new Buffer()' is deprecated due to security and usability issues #1904

Closed
safethecode opened this issue Jan 21, 2023 · 1 comment 路 Fixed by #1905
Closed

[Bug] 'new Buffer()' is deprecated due to security and usability issues #1904

safethecode opened this issue Jan 21, 2023 · 1 comment 路 Fixed by #1905

Comments

@safethecode
Copy link
Contributor

馃悰 What is the bug? How can we reproduce it?

Please put here any steps, code or any information that can help us
reproduce the error on our side so we can fix it:

  1. with the extension installed, access the Toggle Developer tools and check the console tab.

Expected behavior

What were you expecting to happen?

I was hoping it would work normally, but a deprecated issue occurred in the extension host log in the console.
I dare to predict that VSC is down due to this.

Debug output

Developer Tools console

(node:9046) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code Helper --trace-deprecation ...` to show where the warning was created)

Environment

Please tell us about your system and your project:

  • envinfo:
  System:
    OS: macOS 11.2.3
    CPU: (8) arm64 Apple M1
    Memory: 520.13 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
    Yarn: 1.22.17 - /opt/homebrew/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
    Watchman: 2021.12.13.00 - /opt/homebrew/bin/watchman
  Managers:
    Cargo: 1.63.0 - ~/.cargo/bin/cargo
    CocoaPods: 1.11.2 - /usr/local/bin/pod
    Homebrew: 3.3.8 - /opt/homebrew/bin/brew
    pip3: 21.3.1 - /opt/homebrew/bin/pip3
    RubyGems: 3.0.3 - /usr/bin/gem
  Utilities:
    Make: 3.81 - /usr/bin/make
    GCC: 4.2.1 - /usr/bin/gcc
    Git: 2.30.1 - /usr/bin/git
    Clang: 12.0.5 - /usr/bin/clang
    FFmpeg: 4.4.1 - /opt/homebrew/bin/ffmpeg
  Servers:
    Apache: 2.4.46 - /usr/sbin/apachectl
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 29, 30, 31
      Build Tools: 30.0.2, 31.0.0
      System Images: android-31 | Google APIs ARM 64 v8a
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7678000
    Nano: 2.0.6 - /usr/bin/nano
    Vim: 8.2 - /usr/bin/vim
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Bash: 3.2.57 - /bin/bash
    Java: 1.8.0_292 - /usr/bin/javac
    Perl: 5.28.2 - /usr/bin/perl
    PHP: 7.3.24 - /usr/bin/php
    Protoc: 3.17.3 - /opt/homebrew/bin/protoc
    Python: 2.7.16 - /usr/bin/python
    Python3: 3.9.9 - /opt/homebrew/bin/python3
    Ruby: 2.6.3 - /usr/bin/ruby
    Rust: 1.63.0 - /Users/jam/.cargo/bin/rustc
  Databases:
    MongoDB: 5.0.3 - /opt/homebrew/bin/mongo
    MySQL: 11.6 - /opt/homebrew/bin/mysql
    SQLite: 3.32.3 - /usr/bin/sqlite3
  Browsers:
    Chrome: 109.0.5414.87
    Safari: 14.0.3
@EzioLi01
Copy link
Collaborator

EzioLi01 commented Jan 22, 2023

Hey @safethecode , thanks for the contribution. Looks it working well. Will do some tests for this and merge it soon!
Thank you for the issue fixing again!

EzioLi01 added a commit that referenced this issue Jan 30, 2023
Co-authored-by: Ezio Li <v-yukl@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants