Testing Chromium: SyzyASAN, a lightweight heap error detector

AddressSanitizer (ASAN) is a tool for finding memory problems and has been used to find thousands of memory errors in Chromium over the last two years. These kinds of errors will typically lead to heap or data corruption and subsequent crashes in random, unrelated code, which make them quite challenging to find and fix without tools like ASAN. However, ASAN is built using LLVM/Clang and is limited to Mac and Linux builds of Chromium. To address the lack of coverage for Windows-only code, we built SyzyASAN.

SyzyASAN is built on top of the Syzygy toolchain and is an instrumentation-based clone of ASAN for detecting heap errors. It consists of three parts:

  • An instrumenter that injects instrumentation into binaries produced by the Microsoft Visual Studio toolchain.
  • A run-time library that replaces malloc, free, et al.
  • An RPC-based logging server that receives information about detected errors. This lets us get information safely out of sandboxed processes, like Chromium’s renderer.

SyzyASAN operates nearly identically to ASAN, finding errors in the same manner and producing similar reports. SyzyASAN finds some of the hardest-to-locate memory bugs like use-after-free, buffer overruns, and underruns. Focusing on very common memory errors allows SyzyASAN to be relatively efficient.

Although Chrome with SyzyASAN is very usable, the penalties in speed – 4.7x on CPU intensive operations – and memory – a 25% increase plus a fixed 256MB increase in each process – are noticeable so we’ll confine these releases to our Canary channel for now. We’ve been releasing SyzyASAN-instrumented builds to the Windows Canary channel one day each week recently. One day with a little slowdown on the Canary channel gives us plenty of great data. In the last three weeks, we’ve found 150 new bugs in Chromium, several of which could lead to security vulnerabilities.

We’ve put together some instructions for instrumenting your local build and debugging issues. Try it out and help us squash more memory bugs. The Syzygy source code and binaries can be downloaded from our code site, and instructions for how to use it are on our wiki. If you have any questions, suggestions or contributions, feel free to contact [email protected]. If you’re using Syzygy or SyzyASAN with your project we’d love to hear about it!

Read original post...

Google+ Hangouts and Phone Numbers

hangouts-phone-number

There’s an interesting Google Settings page for phone numbers. By default, the page only includes a message that says: “No phone numbers associated with this setting.”

A help center page explains that this feature will help your friends find your phone number.

“Help people who have your phone number find you on Google services and connect with you. For example, your friends will be able to start a Hangout with you by typing in your phone number. When this setting is checked, it makes it easier for people who have your phone number to find you on Google services. When this setting is unchecked, people may not be able to look up your name, photo and public Google profile (and other profile information you have shared with them) via that phone number.”

It’s related to the new Google+ Hangouts service, which asks users to verify their phone numbers so that the people who have their numbers could find them. Google tries to compete with services like iMessage and WhatsApp that replace text messaging.

If you confirm one or more phone numbers, the settings page will include them and you can uncheck some of them.

{ Thanks, Herin. }

Read original post...

Understanding Google+ Hangouts

hangouts-green-bar

I’m trying to understand Google+ Hangouts. It’s supposed to replace products and features like Google Talk, Google Chat, Google+ Messenger and to become Google’s unified messaging service.

Let’s start with the name. It includes “Google+”, so it looks like a Google+ feature. The product actually borrows the name of Google+’s group video chat feature.

How can you use this product? There are 5 ways: inside Google+ (replaces the Google Chat box), inside Gmail (optionally replaces the Gmail Chat box), using a Chrome extension (has already replaced the Google Chat extension and it requires Google+), an Android app (gradually replacing the built-in Google Talk app) and an iOS app (entirely new, requires Google+).

As you can see, 3 of the 5 ways to use it require Google+. You can refuse to upgrade to Hangouts in Gmail, but the Gmail Chat feature will eventually be discontinued. Probably most Android users will upgrade from Google Talk to Google+ Hangouts. The only other Google Chat clients are the Google Talk app for Windows and the chat boxes from iGoogle and orkut.

Google+ Hangouts doesn’t require Google+, but most Google+ Hangouts clients require Google+. Actually there are 2 features that are somehow tied to Google+: sharing photos (they’re uploaded to Google+ photos) and group chat. Here’s what happens when you try to use them in Gmail, without joining Google+:

Google+ Hangouts has little in common with Google Chat/Talk, it’s actually an upgraded Google+ Messenger. Hangouts focuses on conversations, not people, that’s why you won’t see a long list of buddies. Ideally, Hangouts lets you communicate with anyone you’ve added to a Google+ circle or anyone else, if you know his email address or phone number. When you open mobile clients for the first time, Google asks you to verify your phone number and that’s optional.

Many people complain that Hangouts doesn’t show if someone is online. Google’s new service does away with busy/away/invisible/offline and has a different way to show if some is “connected”: a green bar under the photo if someone can reply immediately. It only shows up if someone actually uses the application.

Hangout’s tagline is “conversations come to life”. Maybe because there are hundreds of emojis you can add to your messages, maybe because there’s video chat, maybe because of the presence signals. “Hangouts inserts tiny little square avatars into the chat history, called ‘watermarks.’ These watermarks show when somebody else is typing, but they also indicate how far others have read in the conversation,” reports The Verge.

Google+ Hangouts lacks many features from Google Chat: voice chat, phone calls, sending SMS, formatting tricks. You can now use keyboard shortcuts, but only for the desktop clients. Hangouts has its own Easter Eggs and they’re really funny. Unfortunately, Hangouts drops support for server-to-server XMPP, it can’t interact with other XMPP apps/services. It still works with Gmail Chat and Google Talk, though.

So what’s Google+ Hangouts, after all? “The single communication app that we want our users to rely on,” says Nikhyl Singhal, from Google. “We don’t see Hangouts as a messaging product, we see it as a communication product,” says product manager Kate Cushing.

Hangouts lets you decide for each Google+ circle if you want to be added to a hangout by its members or if you want them to send a request. Notifications are supposed to be synchronized for all your devices, so you only see them once, but I got multiple notifications.

Google+ is about real-life sharing, so Hangouts is built on top of the original Hangouts and Messenger features. The initial name of Google+ Messenger was Huddle, which means “draw together for an informal, private conversation”.

The Talk era was about openness, the Chat era was about ubiquity, the Hangouts era is about Google+, the new Google that’s all about social and mobile. From OpenSocial to ClosedSocial, from OpenMessaging to ClosedMessaging, from idealism to realism.

Read original post...

Google+ Hangouts SMS

hangouts-sms

Google Accounts settings page has a new feature called “SMS for Hangouts“. You can “add your phone number to receive messages from Google+ Hangouts as SMS, when you are idle.” Google goes on to explain that “SMS is less secure and may be less reliable than web-based communication. All messages sent by SMS are sent…

The New Google Maps, Now Available

google-maps-ram-3

By now, you’ve probably received the invitation to try the new Google Maps. It’s not available without an invitation and it’s likely that it won’t replace the classic Google Maps very soon. The new interface is the most radical change to Google Maps since 2005, when Google’s online mapping service was launched. Here’s Google Maps…

Google Search Evolution

I found a great paragraph in a Google page about Gmail actions: “Google Search is evolving from surfacing search results to answering questions. With Voice Search and Natural language queries, users can speak or type questions they have and see highly structured information cards in Search.” That changes how people interact with Google Search, how…

Gmail Actions

gmail-quick-actions

Wouldn’t it be nice to deal with an email message without having to read it? Sure, you can read the subject line and archive the message, delete it or flag it as spam, but what happens when you receive notifications for online orders, flights, hotel reservations, reviews? Gmail introduced quick action buttons that are placed…

Galaxy S4, Nexus Edition

galaxy-s4-nexus

Google didn’t announce a new Nexus device at Google I/O, but you’ll still get something close to a Nexus phone: Samsung Galaxy S4, unlocked, with LTE support for T-Mobile and AT&T, Google software and quick updates. It will be available on June 26 from Google Play US for $649. “This is a Samsung Galaxy S4…

Preview the New Google Maps

new-google-maps-style-4

Until Google sends invites that let you preview the new Google Maps interface, check the MoreThanAMap site to see the new maps. It’s a site that shows demos for various Google Maps API features, but the “base maps” demos are the most interesting because you can see the new map tiles. “For the last decade,…

Google Play Apps and Services, the New Android Updates

play-services

Many people expected to hear some information about a new Android version at the Google I/O keynote. Google decided to focus on new development tools, Google Play Store, Google Play Music and new APIs for Google Play Services. Actually Google focused on the things it can control and quickly update. Google Play Services is automatically…

Chrome, the Most Popular Web Browser

about-chrome

Sometimes it’s a good idea to question browser stats. While some companies claim that Chrome loses market share, Google says that the number of active Chrome users increased from 320 million (June 2012) to 750 million. According to Google, Chrome is now the most popular browser in the world. “With over 750 million active users…

Google Play Music All Access

play-music-all-access

That’s a long name. It’s actually a music subscription service available in the US that’s part of Google Play Music. “Google Play Music All Access is a new monthly music subscription service that lets you listen to millions of songs across your devices. You can create a radio station from any song or artist you…

New Google+ and Google Hangouts

google-plus-new-ui

Google+ has received a major update. There’s a new multi-column desktop interface, a new messaging platform and Google+ Photos is a lot smarter. The desktop Google+ looks different. You can see more content thanks to the new interface that shows up to 3 columns, depending on the window size. “Photos and videos can fill the…

Conversational Voice Search for Desktop

desktop-voice-search

Amit Singhal announced at Google I/O that this is “the end of search as we know it”. The future of search goes beyond search results and it has more to do with answering questions, conversations and anticipating user’s intentions. Google has 3 products with similar goals: Knowledge Graph, Voice Search and Google Now. They go…

Reinventing Google Maps

new-google-maps-ui

As anticipated, Google announced a new Google Maps interface for the desktop. It’s not publicly available, but you can get an invite here. The new Google Maps has three goals: creating personalized maps, making maps immersive and building the interface around maps. Just like Google Chrome removed unnecessary interface elements, Google developed a completely new…