Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

  • http://1.gravatar.com
  • /avatar
  • /a7fa0bb4ebff5650d2c83cb2596ad2aa

?s=96&d=identicon&r=G

  • @hownot2code
    How not 2 code @hownot2code CC BY 8/05/2018

    Subtitle Edit
    ▻https://hownot2code.com/2018/03/29/subtitle-edit

    Something’s wrong with a picture size of 720 x 480 V3022 CWE-570 Expression ‘param.Bitmap.Width == 720 && param.Bitmap.Width == 480’ is always false. Probably the ‘||’ operator should be used here. ExportPngXml.cs 1808 private static string FormatFabTime(TimeCode time, MakeBitmapParameter param) if (param.Bitmap.Width == 720 && param.Bitmap.Width == 480) return $"...."; // drop frame if … Continue reading Subtitle Edit

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/05/1707042042366598_f0_0.jpg?w=300

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 8/05/2018

    XNU Kernel
    ▻https://hownot2code.com/2018/03/29/xnu-kernel

    Null pointer dereference V512 CWE-119 A call of the ‘__builtin___memcpy_chk’ function will lead to a buffer overflow. – ADDITIONAL IN CURRENT necp_client.c 1459 V557 CWE-787 Array overrun is possible. The value of ‘length – 1’ index could reach 23. – ADDITIONAL IN CURRENT necp_client.c 1460 #define IFNAMSIZ 16 #define IFXNAMSIZ (IFNAMSIZ + 8) #define MAX_ROUTE_RULE_INTERFACES … Continue reading XNU Kernel

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/05/noyau_xnu_simplific3a9-svg.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 8/05/2018

    Unity
    ▻https://hownot2code.com/2018/04/29/unity

    Early nullifying V3080 CWE-476 Possible null dereference. Consider inspecting ‘m_RowRects’. TreeViewControlGUI.cs 272 public override void GetFirstAndLastRowVisible(....) .... if (rowCount != m_RowRects.Count) m_RowRects = null; throw new InvalidOperationException(string.Format("....", rowCount, m_RowRects.Count)); .... In this case, the exception throw (access by the null reference m_RowRects) will happen when generating the message string for another … Continue reading Unity

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/04/official_unity_logo.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 8/05/2018

    Krita 4.0
    ▻https://hownot2code.com/2018/04/29/krita-4-0

    Problems with Null Pointers V522 Dereferencing of the null pointer ‘slot’ might take place. kis_spriter_export.cpp 568 KisImportExportFilter::ConversionStatus KisSpriterExport::convert( KisDocument document, QIODevice *io, KisPropertiesConfigurationSP /*configuration/) .... SpriterSlot *slot = 0; // layer.name format: “base_name bone(bone_name) slot(slot_name)” if (file.layerName.contains("slot(")) int start = file.layerName.indexOf("slot(") + 5; int end = file.layerName.indexOf(’)’, start); slot->name = file.layerName.mid(start, end - start); … Continue reading Krita 4.0

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/05/logo-krita-3.png?w=676

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 8/05/2018

    Static Analysis in Video Game Development: Top 10 Software Bugs
    ▻https://hownot2code.com/2018/05/08/static-analysis-in-video-game-development-top-10-software-bugs

    If you are a software developer working in the video game industry and wondering what else you could do to improve the quality of your product or make the development process easier and you don’t use static analysis – it’s just the right time to start doing so. You doubt that? OK, I’ll try to … Continue reading Static Analysis in Video Game Development: Top 10 Software Bugs

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/05/image1.png http://hownot2code.files.wordpress.com/2018/05/image2.png http://hownot2code.files.wordpress.com/2018/05/image3.png http://hownot2code.files.wordpress.com/2018/05/image4.png http://hownot2code.files.wordpress.com/2018/05/image5.png http://hownot2code.files.wordpress.com/2018/05/image6.png http://hownot2code.files.wordpress.com/2018/05/image7.png http://hownot2code.files.wordpress.com/2018/05/image8.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 21/03/2018

    PVS-Studio: the Additional Insurance of the Medical Software
    ▻https://hownot2code.com/2018/03/21/pvs-studio-the-additional-insurance-of-the-medical-software

    Software bugs can lead not only to material losses, but also can damage human’s health. For example, actors on the stage of a theatre can get injured if suddenly one of the scenery begins to go down on the stage at the wrong time. However, the connection between the errors in code and the health … Continue reading PVS-Studio: the Additional Insurance of the Medical Software

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://www.viva64.com/media/images/content/b/0564_Medic/image6.png http://www.viva64.com/media/images/content/b/0564_Medic/image2.png http://www.viva64.com/media/images/content/b/0564_Medic/image4.png http://www.viva64.com/media/images/content/b/0564_Medic/image8.png http://www.viva64.com/media/images/content/b/0564_Medic/image9.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 1/03/2018

    RT-Thread
    ▻https://hownot2code.com/2018/02/28/rt-thread

    Usage a logical operator “&&” instead of bitwise operator “&” V560 CWE-571 A part of conditional expression is always true: 0xFFFF0000. peci.c 372 V560 CWE-571 A part of conditional expression is always true: 0x0000FFFF. peci.c 373 #define PECI_M0D0C_HITHR_M 0xFFFF0000 // High Threshold #define PECI_M0D0C_LOTHR_M 0x0000FFFF // Low Threshold void PECIDomainConfigGet(....) unsigned long ulTemp; .... … Continue reading RT-Thread

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/03/image1.png?w=300

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 29/01/2018

    QtCreator
    ▻https://hownot2code.com/2017/12/29/qtcreator

    A typo V653 A suspicious string consisting of two parts is used for initialization. It is possible that a comma is missing. Consider inspecting this literal: “oct” "chr". pythonscanner.cpp 205 // List of python built-in functions and objects static const QSet builtins = “range”, “xrange”, “int”, “float”, “long”, “hex”, “oct” "chr", “ord”, “len”, “abs”, … Continue reading QtCreator

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/01/qtcreator.png http://hownot2code.files.wordpress.com/2018/01/image2.gif http://hownot2code.files.wordpress.com/2018/01/image3.gif?w=344

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 29/01/2018

    Chromium
    ▻https://hownot2code.com/2018/01/29/chromium

    A typo V547 / CWE-571 Expression ‘time.month <= kDaysInMonth[time.month] + 1’ is always true. time.cc 83 V547 / CWE-571 Expression ‘time.month <= kDaysInMonth[time.month]’ is always true. time.cc 85 This error is found in the Protocol Buffers (protobuf) library used by Chromium. Protocol Buffers is a protocol for serializing structured data developed by Google as a smaller and … Continue reading Chromium

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2018/01/image1-1.png?w=300

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 19/12/2017

    A first look at RPG: turns out it’s not only Role-Playing Games
    ▻https://hownot2code.com/2017/12/19/a-first-look-at-rpg-turns-out-its-not-only-role-playing-games

    Many of you have heard about one of the oldest programming languages, COBOL, and you have also heard that COBOL programmers are much asked for nowadays to maintain old legacy code. There’s another old-timer which few know about and which is still in use and will be in use for quite a while for applications … Continue reading A first look at RPG: turns out it’s not only Role-Playing Games

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image1.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image2.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image3.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image4.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image5.png http://hownot2code.files.wordpress.com/2017/12/image7.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image8.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image9.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image10.png http://www.viva64.com/media/images/content/b/0548_IBM_RPG/image11.png

    • #RPG
    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 7/12/2017

    If doctors were like coders
    ▻https://hownot2code.com/2017/09/06/if-doctors-were-like-coders

    Dr. Stark O. Verflo, M.D. Problem The patient has a broken leg. Solution Ask the patient to reproduce the exact scenario that resulted in the broken leg. Watch closely to see if the leg breaks again. Check for consistency by repeating the scenario a few more times. Explain that this isn’t an intended use case … Continue reading If doctors were like coders

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2017/09/maxresdefault-1.jpg?w=676

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 7/12/2017

    ClickHouse
    ▻https://hownot2code.com/2017/09/29/clickhouse

    A typo V546 Member of a class is initialized by itself: ‘entry(entry)’. PoolWithFailoverBase.h 74 CWE-665: Improper Initialization struct TryResult .... explicit TryResult(Entry entry_) : entry(std::move(entry)) , is_usable(true) , is_up_to_date(true) .... Entry entry; .... Due to typos, entry member is initializing itself and as a result it actually remains uninitialized. To fix … Continue reading ClickHouse

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2017/09/d9b066e61e1f480a977d889dc03ded99.png?w=676

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 7/12/2017

    Rosegarden
    ▻https://hownot2code.com/2017/11/07/rosegarden

    Resource leak V668 There is no sense in testing the ‘file’ pointer against null, as the memory was allocated using the ‘new’ operator. The exception will be generated in the case of memory allocation error. SF2PatchExtractor.cpp 94 SF2PatchExtractor::Device SF2PatchExtractor::read(string fileName) Device device; ifstream *file = new ifstream(fileName.c_str(), ios::in |....); if (!file) throw FileNotFoundException(); .... … Continue reading Rosegarden

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2017/11/rosegarden-logo-dark-300x129.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 7/12/2017

    Search for Bugs in Code at the Early Stage
    ▻https://hownot2code.com/2017/11/08/search-for-bugs-in-code-at-the-early-stage

    Every developer knows about a debugger, version control system or, for example, unit-tests. Nevertheless, not all developers are familiar with the methodology of static code analysis. Meanwhile, the technology becomes an integral part of the development cycle of programs. I would like to suggest a small introductory course for anyone interested in modern development trends. … Continue reading Search for Bugs in Code at the Early Stage

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2017/11/search-for-bugs.png http://hownot2code.files.wordpress.com/2017/11/screenshot_25.png http://hownot2code.files.wordpress.com/2017/11/screenshot_4.png http://hownot2code.files.wordpress.com/2017/11/screenshot_5.png http://hownot2code.files.wordpress.com/2017/11/screenshot_6.png

    How not 2 code @hownot2code CC BY
    Écrire un commentaire
  • @hownot2code
    How not 2 code @hownot2code CC BY 7/12/2017

    Sphinx
    ▻https://hownot2code.com/2017/11/30/sphinx

    CWE-762: Mismatched Memory Management Routines V611 The memory was allocated using ‘new T[]’ operator but was released using the ‘delete’ operator. Consider inspecting this code. It’s probably better to use ‘delete [] pInlineStorage;’. sphinx.cpp 19178 To begin with, we need to look at the implementation of two macros: #define SafeDelete(_x) \ if (_x) … Continue reading Sphinx

    ►http://1.gravatar.com/avatar/a7fa0bb4ebff5650d2c83cb2596ad2aa?s=96&d=identicon&r=G

    http://hownot2code.files.wordpress.com/2017/11/flat800x800075f.jpg

    How not 2 code @hownot2code CC BY
    Écrire un commentaire