Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Designing Better UX For Left-Handed People

      July 25, 2025

      This week in AI dev tools: Gemini 2.5 Flash-Lite, GitLab Duo Agent Platform beta, and more (July 25, 2025)

      July 25, 2025

      Tenable updates Vulnerability Priority Rating scoring method to flag fewer vulnerabilities as critical

      July 24, 2025

      Google adds updated workspace templates in Firebase Studio that leverage new Agent mode

      July 24, 2025

      How to build secure and scalable remote MCP servers

      July 25, 2025

      How to Discover a CSS Trick

      July 25, 2025

      Designer Spotlight: Ivor Jian

      July 25, 2025

      Error’d: It’s Getting Hot in Here

      July 25, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Tool‑Augmented RAG Chatbot: GPT‑4, pgVector & Next.js

      July 25, 2025
      Recent

      Tool‑Augmented RAG Chatbot: GPT‑4, pgVector & Next.js

      July 25, 2025

      The Intersection of Agile and Accessibility – Writing Inclusive User Stories and Acceptance Criteria

      July 25, 2025

      The Intersection of Agile and Accessibility – Accessibility Testing in Continuous Integration

      July 25, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Securing Linux: Steady Momentum in AppArmor and SELinux Uptake

      July 25, 2025
      Recent

      Securing Linux: Steady Momentum in AppArmor and SELinux Uptake

      July 25, 2025

      Intel confirms major job cuts, targets 24,500 layoffs by end of 2025

      July 25, 2025

      Microsoft Quietly tests Copilot in Edge InPrivate Browsing Mode

      July 25, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»CodeSOD: ConVersion Version

    CodeSOD: ConVersion Version

    July 24, 2025

    Mads introduces today’s code sample with this line: ” this was before they used git to track changes”.

    Note, this is not to say that they were using SVN, or Mercurial, or even Visual Source Safe. They were not using anything. How do I know?

    /**
      * Converts HTML to PDF using HTMLDOC.
      * 
      * @param printlogEntry
      ** @param inBytes
      *            html.
      * @param outPDF
      *            pdf.
      * @throws IOException
      *             when error.
      * @throws ParseException
    */
    public void fromHtmlToPdfOld(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException
    	{...}
    
    /**
     * Converts HTML to PDF using HTMLDOC.
     * 
     * @param printlogEntry
     ** @param inBytes
     *            html.
     * @param outPDF
     *            pdf.
     * @throws IOException
     *             when error.
     * @throws ParseException
     */
    public void fromHtmlToPdfNew(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException
    	{...}
    

    Originally, the function was just called fromHtmlToPdf. Instead of updating the implementation, or using it as a wrapper to call the correct implementation, they renamed it to Old, added one named New, then let the compiler tell them where they needed to update the code to use the new implementation.

    Mads adds: “And this is just one example in this code. This far, I have found 5 of these.”

    [Advertisement]
    ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleElektroid – sample and MIDI device manager
    Next Article Il podcast di Marco’s Box – Puntata 208

    Related Posts

    News & Updates

    How to build secure and scalable remote MCP servers

    July 25, 2025
    News & Updates

    How to Discover a CSS Trick

    July 25, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-32471 – Cisco ASA Unsalted Password Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Copilot in Excel gets major boost with smarter context awareness and data highlights

    Operating Systems

    I used to dread big design projects — until I figured this out

    Web Development

    Handle Nested Arrays Elegantly with Laravel’s fluent() Helper

    Development

    Highlights

    CVE-2022-21546 – Dell SBC Null Data Buffer Access Crash Vulnerability (Denial of Service)

    May 2, 2025

    CVE ID : CVE-2022-21546

    Published : May 2, 2025, 10:15 p.m. | 1 hour, 15 minutes ago

    Description : In newer version of the SBC specs, we have a NDOB bit that indicates there is no data buffer that gets written out. If this bit is set using commands like “sg_write_same –ndob” we will crash in target_core_iblock/file’s execute_write_same handlers when we go to access the se_cmd->t_data_sg because its NULL. CVSS 3.1 Base Score 7.7 (Availability impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H).

    Severity: 7.7 | HIGH

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    CVE-2025-3786 – Tenda AC15 Wireless Repeat Buffer Overflow Vulnerability

    April 22, 2025

    Can E Ink tablets really reduce stress? This study and my experience say yes

    April 9, 2025

    Skywings Marketing – Leading SEO Company Ghaziabad for Digital Excellence

    April 17, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.