Quantcast
Jump to content

27 000 Errors in the Tizen Operating System


Recommended Posts

PVS-Studio team regularly checks different open projects and publishes articles on the results of these checks. This time, Andrey Karpov (CTO) accomplished the checking of some projects that are part of the Tizen operating system and has detected about 900 errors. The article is devoted to the review of many of these errors and will be useful both for beginners and experienced developers.

The types of errors that will be discussed in the article:

  • CWE-14: Compiler Removal of Code to Clear Buffers
  • CWE-131: Incorrect Calculation of Buffer Size
  • CWE-134 Use of Externally-Controlled Format String
  • CWE-393 Return of Wrong Status Code
  • CWE-457: Use of Uninitialized Variable
  • CWE-476: NULL Pointer Dereference
  • CWE-562: Return of Stack Variable Address
  • CWE-563: Assignment to Variable without Use ('Unused Variable')
  • CWE-570: Expression is Always False
  • CWE-571: Expression is Always True
  • CWE-690: Unchecked Return Value to NULL Pointer Dereference
  • CWE-697: Insufficient Comparison
  • CWE-762: Mismatched Memory Management Routines
  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-787: Out-of-bounds Write
  • CWE-805: Buffer Access with Incorrect Length Value

It is impossible to describe all the 900 errors, that is why most of them will be provided in a list. However, if you wish, you can examine each of the found defects, using the information provided about the location of the error.

According to the results, there is a prediction in the article, that the PVS-Studio analyzer can identify about 27000 errors in this project. This article demonstrates that during the development of the large projects, static analysis is not just a useful, but an absolutely necessary part of the development process. Get some coffee and cookies, as there is a programmer thriller waiting for us.

Link to the article: https://www.viva64.com/en/b/0519/

image554542.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Similar Topics

    • By STF News
      After a long day, even an extra five minutes of sleep in the morning can feel fantastic. When you finally manage to open your eyes and start the day, that’s when the rush to get ready truly begins. After going through your morning routine, putting on clean clothes and having a hearty breakfast, before you know it, it’s time to dash out the door.
       
      To help you get through your busy day, Samsung Electronics has put together a team. With the SmartThings app on the Galaxy Z Fold3 leading the way, Samsung’s latest washer and dryer, Neo QLED 8K and the Bespoke Jet Bot AI+ are ready to team up to help you get ready.
       
      Read on to find out how Team Samsung helps its user ‘A’, breeze through his busy morning.
       
       
      Good Morning Mode Opens the Curtains and Displays the Weather
      A was watching his favorite movie last night and fell asleep late. He ended up missing the alarm on his smartphone, but there’s no need to worry. All he needs to do to get ready for the day is simply unfold his Galaxy Z Fold3 and activate Good Morning Mode in SmartThings.1 Once he’s done that, the curtains that were closed so he could get a good night’s sleep automatically open up and the lights in his home switch on to help him begin his morning in a bright mood.2
       

       
      One of the most important factors to consider when getting ready to go out is the weather. It’s the first thing to check before choosing your outfit and deciding whether or not to take an umbrella with you. Because Good Morning Mode displays the weather automatically through A’s Neo QLED, there’s no need to use the remote to check the weather.
       

       
       
      A Washer That Chooses the Best Wash Cycle While Staying Eco-Conscious

       
      A has picked out an outfit of the day that’s appropriate for the weather, but he forgot to start his laundry. Luckily, Team Samsung can select the best wash cycle and get his laundry done on time even when he’s not around.
       
      Here’s how it works. First, open up the SmartThings app, tap on Laundry Recipe and choose the color, soil level and types of clothes you want to wash in your washer. Wash cycles will differ depending on the color and soil level of the clothes, and whether you want to wash shirts or things like socks. The feature will automatically choose the best wash cycle based on your input.
       
      The Laundry Planner feature allows you to specify when you’d like the load to finish, so your clothes will be fully dry and looking good to go when you need them.
       

       

       
       
      Whipping Up a Delicious Breakfast With SmartThings Cooking

       
      A hearty breakfast is a must for starting off the day with lots of energy. Luckily for A, Team Samsung makes it easy to pick out a recipe for a great meal.
       
      After receiving a recommendation on his Galaxy Z Fold3 using SmartThings Cooking, A automatically sends the recipe to the smart oven and starts cooking. When it’s all done, he can receive a notification through his Galaxy Watch, Family Hub or TV.
       

       
       
      Forgot to Turn Off Your Lights or Devices? Don’t Worry With Away Mode

       
      After putting on some fresh, clean clothes and finishing a delicious breakfast, it’s finally time for A to head out the door. With SmartThings’ Away Mode,3 if A realizes that he forgot to turn off a light or the TV as he’s heading out the door, he won’t need to head back inside to do so. The feature allows you to control not just the lights and the TV, but devices like robotic vacuum cleaners (RVC) as well. In addition, if you have a pet who’ll be left alone at home, SmartThings Pet4 offers peace of mind by allowing you to monitor your furry friend.
       

       
       
      Monitoring Energy Usage With SmartThings Energy

       
      After Team Samsung helped him get ready and he headed out the door, while on his way to his destination, A became curious about how much energy he’d been consuming this month. Once he unfolded his Galaxy Z Fold3, he accessed the SmartThings Energy5 service, which offered him detailed insights on his energy usage.
       

       
      For those who can’t afford to miss work or skip chores in this busy world, Team Samsung is here for you. Experience a smarter and more relaxing start to your day with SmartThings.
       
      For more information on Team Samsung, please visit samsung.com.
       
       
      1 SmartThings application must be installed and connected to devices in order to utilize its features. Application requirements may differ depending on the device.
      2 The electric curtains and lights described are products of a partner company, not Samsung. Therefore, quality assurance depends on the partner company’s standards.
      3 SmartThings application must be installed and connected to devices in order to utilize its features. Application requirements may differ depending on the device.
      4 SmartThings Pet is available for Bespoke Jet Bot AI+.
      5 How much detergent, water and energy can be saved can differ depending on the actual usage environment and the types of items being washed. SmartThings Energy service may not be supported by some devices.
      View the full article
    • By STF News
      Samsung Electronics’ Odyssey Neo G9 has the most powerful product specifications of any Samsung monitor to date. Thanks to the inclusion of Quantum Matrix Technology as well as pro-level performance, the Odyssey Neo G9 provides users with groundbreaking picture quality and speed.
       
      But perhaps you might be curious as to why Quantum Matrix Technology is such a key component of the Odyssey Neo G9, or how Samsung’s proprietary technology controls Mini LEDs.
       
      In order to answer your questions, the Odyssey Neo G9’s engineer and product planner are here to provide insights into how they went about creating this groundbreaking monitor. Take a look at the video below to learn more.
       
      View the full article
    • By STF News
      In this episode of POW, Tony Morelan is joined by all five members of the Samsung Internet Developer Advocacy Team.
      During our chat we’ll talk about building responsive web experiences for foldable devices, privacy and security on the web and exciting new technologies related to WebXR and the Samsung Internet browser.
      Topics Covered:
      The Benefits of Samsung Internet Browser Web Standards and User Experiences Foldables and Responsive Design Privacy and Security AR/VR (Augmented Reality / Virtual Reality) Android Developers Immersive Web Weekly 5G Tours W3C  
       
      To hear all the Samsung Developer Podcasts, please visit samsungdev.buzzsprout.com.
      View the full blog at its source
    • By STF News
      The web doesn’t have a marketing team. It doesn’t have a single developer program you can sign up to. And it doesn’t have a manual. That’s by design. Like the Internet, the web isn’t controlled by any single entity. But this decentralisation can also be a pain for web developers and designers.
      The web has lots of documentation, but it’s often an issue for developers to find documentation that is not written from a perspective of one web product — for example, a browser or a framework. The web needs a place where people can go to get the ground truth.
      Over the last decade, MDN has become that trusted source of information — a place where developers know they can get the documentation they need about how to build for the web. That’s because, even though it’s a project run by Mozilla, it documents the web across all browsers. Cross-browser compatibility is one of the key pain points of web development, and good documentation is one of the ways we can mitigate that pain. Ask any developer where they go first for documentation and they will likely cite MDN.
      That’s why, in 2017, I jumped at the chance of joining the Product Advisory Board of MDN. I saw it as an opportunity to give back, and also to be a part of a project to reinforce this cross-browser message. By the way, I started my career as a technical writer, so I have opinions on the importance of good technical writing when it comes to the developer experience. The product advisory board was an experiment from MDN to bring in an external advisory group — including members from Microsoft, Google and W3C. These organisations were all already investing time in building and maintaining MDN. The PAB gave them a way to advise on product direction and hear about future planning.

      Open Web Docs

      Fast forward to 2020. Mozilla restructured and MDN took a hit. As a response, the same organisations (and people) who had come together to support MDN via the Product Advisory Board came together again, with others, to launch something called Open Web Docs. Open Web Docs is a new open source project, set up to help support and maintain documentation on the web — via MDN. In practice, this means that Open Web Docs will be paying writers to help write documentation and build the tools that are required to produce high-quality web documentation (for example, to maintain browser compatibility data), in collaboration with Mozilla. Open Web Docs will help to ensure the stability of MDN and will focus the activities of the multiple stakeholders in good web documentation. I’m proud to have been a part of the planning for this effort. I’m also glad that Samsung Internet will be investing our time and energy, both through our continued participation in the MDN Product Advisory Board and via Open Web Docs, in helping to document the web platform.
      A beautiful library at Trinity College, Dublin. Photo by Alex Block on Unsplash
      View the full blog at its source
    • By STF News
      Looking to show off your design chops? You can now submit your portfolio to Samsung and apply to become a Galaxy Watch face or Galaxy Themes seller. The submission window is open October 14 - October 27.
      Galaxy Watch
      Check out our latest how-to blog and read up on the new process for watch face design reviews. Then head over to the submission page and complete your application.
      Galaxy Themes
      Watch our video for an overview of the process and what you need to prepare. Then download the Themes Submission Starter Kit and let the creative juices flow. Once you've assembled everything, complete your application here.
      While you're working on your portolfio, listen to Tony show Diego how to use Galaxy Themes Studio. It will livestream on Thursday, October 15 at 10am PT and will be available on YouTube for replay.
      Submit Now
      The application process is very selective, and only the best of the best are selected. Think you have what it takes? We can't wait to find out.
      View the full blog at its source
  • Similar Tagged Content

×
×
  • Create New...